Documentation ¶
Overview ¶
Package conffile wraps the read and write of configuration files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt func(*File)
func WithDirName ¶
WithDirName determines the filename from a subdirectory in the user's HOME e.g. dir=".app", name="config.json", sets the fullname to "$HOME/.app/config.json"
func WithEnvDir ¶ added in v0.4.4
WithEnvDir sets the fullname to the environment value + filename if the environment variable is defined
func WithEnvFile ¶ added in v0.4.4
WithEnvFile sets the fullname to the environment value if defined
Click to show internal directories.
Click to hide internal directories.