config

package
v0.0.0-...-96ff8f7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

Initailises viper and loads the configuration

func MustHomeDir

func MustHomeDir() string

MustHomeDir gets the user's home directory path or panics if it fails

func ReadInConfig

func ReadInConfig()

ReadInConfig reads the config based on what is initialised and parses it into the global config struct

Types

type Config

type Config struct {
	BuildId  string `mapstructure:"buildId"`
	Insecure bool   `mapstructure:"insecure"`
}
var (
	UserAppDir = path.Join(homedir, "."+appName)
	C          Config
)

func NewConfig

func NewConfig() *Config

Jump to

Keyboard shortcuts

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