Documentation
¶
Overview ¶
Package config providies ways to retrieve configurations and such from the user's profile. To use this package correctly one must run `config.SetAppName` first which sets the global appName variable. This value is used to look up application-specific configurations, cache files, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contents ¶ added in v0.4.3
Contents returns an io.Reader with the given configuration file contents.
func EnvOrContents ¶ added in v0.4.3
EnvOrContents returns the environment variable envar or configuration contents of file.
func SetAppName ¶
func SetAppName(name string)
SetAppName sets the global config app name which is used for retrieving specific configuration contents.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.