config

package
v1.2.1-0...-837fef5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigTmpl = `BaseDictDir="$HOME/dicts"
`

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*ConfigStruct
	ConfigPath    string
	ViperInstance *viper.Viper
}

func ReadConfig

func ReadConfig(configFilePath string) (*Config, error)

func (*Config) EnsureDictsDir

func (c *Config) EnsureDictsDir() string

func (*Config) Write

func (c *Config) Write() error

type ConfigStruct

type ConfigStruct struct {
	BaseDictDir string `toml:"BaseDictDir"`
}

Jump to

Keyboard shortcuts

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