Documentation ¶
Index ¶
- Constants
- func GetCacheDir() (string, error)
- func GetConfigDir() (string, error)
- func MkdirIfNotExists(dirname string) error
- func StringMapKeys(m map[string]string) []string
- func StringSliceContains(slice []string, str string) bool
- func TrimLeadingSlash(s string) string
- func Tune()
- func ViperCache() (*viper.Viper, error)
Constants ¶
View Source
const AppName = "czid-cli"
Variables ¶
This section is empty.
Functions ¶
func GetCacheDir ¶
GetCacheDir gets the cache directory for this application
func GetConfigDir ¶
GetConfigDir gets the config directory for this application
func MkdirIfNotExists ¶
MkdirIfNotExists makes a directory if it doesn't exist
func StringMapKeys ¶
func StringSliceContains ¶
func TrimLeadingSlash ¶
TrimLeadingSlash trims the leading slash from a string if one is present
func ViperCache ¶
ViperCache returns a viper instance backed by a file in the cache directory. If no such file or directory exists, one is created. It is safe to call this concurrently.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.