Documentation ¶
Overview ¶
Package config has weakness because of lenCaller.
Gobase.Start must be called in the same path with the config folder. It is a fragile assumption, but worth it. Because Gobase is made for personal simplicity.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config public
func Set ¶
Set sets and retrieves Config from yaml files on config directory.
relativeDepth format follows '.', '..', '../..'... The name of the yaml file is determined by an environment variable whose key is 'STAGE'. If there is no environment variable, 'local' is selected by default. (e.g. 'local.yaml')
func SetWithCallerLength ¶
SetWithCallerLength is same as Set but requires an extra caller length.
Click to show internal directories.
Click to hide internal directories.