config

package
v0.0.0-...-3b95945 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GetString = viper.GetString
	GetInt    = viper.GetInt
	GetBool   = viper.GetBool
	BindPFlag = viper.BindPFlag
)
View Source
var FARGO_VERSION string

Functions

func ConfigDir

func ConfigDir() (string, error)

ConfigDir returns the path to the configuration directory. Defaults to "~/.fargo", or "$XDG_CONFIG_HOME/fargo" if XDG_CONFIG_HOME is set. If both paths exist, it prioritizes "$XDG_CONFIG_HOME/fargo". This function creates the path if it does not already exist.

See: https://specifications.freedesktop.org/basedir-spec/latest/

func Load

func Load() string

Initialize configuration using Viper

Types

This section is empty.

Jump to

Keyboard shortcuts

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