Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load() error
Load loads the config.json file in the current working directory. If the "GOYAVE_ENV" env variable is set, the config file will be picked like so: - "production": "config.production.json" - "test": "config.test.json" - By default: "config.json"
func Register ¶ added in v2.5.0
Register a config entry for validation. If the entry identified by the given key is set or modified, its value will be validated according to the given kind. If the entry already exists, it will be revalidated.
This method doesn't allow to override existing validation. Once an entry is registered, its expected kind cannot be modified.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.