Documentation ¶
Overview ¶
Package envigo overrides your configuration with environment variables.
https://github.com/koofr/envigo
Copyright (c) 2013 Koofr d.o.o.
Written by Luka Zakrajšek <luka@koofr.net>
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Envigo ¶
Envigo overrides values in struct with values found by EnvGetter. Argument m must be pointer to structure. Argument prefix is prepended to key name for lookup. Argument getenv looks up value for key.
Mapping example:
config.Http.Port -> HTTP_PORT config.Logging.Level -> LOGGING_LEVEL config.Debug -> DEBUG
Types ¶
Click to show internal directories.
Click to hide internal directories.