config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvConfigDir = "EMR_CONFIG_DIR"
)

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() string

ConfigDir returns the path to the config directory. Config path precedence: EMR_CONFIG_DIR, XDG_CONFIG_HOME, AppData (windows only), HOME.

func ConfigFile

func ConfigFile() string

ConfigFile returns the path to the config file. Also see ConfigDir().

func SaveConfig

func SaveConfig(config Config) error

Types

type Config

type Config struct {
	PassboltKey string `yaml:"passbolt_key" json:"passbolt_key"`
}

func RetrieveConfig

func RetrieveConfig() (Config, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳