config

package
v0.0.0-...-e28e0fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserConfigDir

func UserConfigDir() (string, error)

func UserConfigName

func UserConfigName() (string, error)

Types

type Config

type Config struct {
	*koanf.Koanf
}

func (*Config) DurationErr

func (c *Config) DurationErr(path string) (time.Duration, error)

func (*Config) IntErr

func (c *Config) IntErr(path string) (int, error)

func (*Config) StringErr

func (c *Config) StringErr(path string) (string, error)

type KeyConfig

type KeyConfig struct {
	Key     string
	Created time.Time
}

func LoadKeyConfig

func LoadKeyConfig() (*KeyConfig, error)

func (*KeyConfig) Save

func (c *KeyConfig) Save() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL