Skip to content

Provides a standard configuration interface for golang projects

License

Notifications You must be signed in to change notification settings

moneta/go-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-config

Provides a standard configuration interface for golang projects

Usage

Put your configuration file under the folder specified by the environment variables CURRENT_CONFIG_NAME and CURRENT_CONFIG_PATH

Example

export CURRENT_CONFIG_NAME=config
export CURRENT_CONFIG_PATH=./config 

This is a sample of config/yaml file:

env:
    DB_CONNECTION_STRING: 'schema://user_name:password@host:5432/postgres'
    SOME_SETTING: value

About

Provides a standard configuration interface for golang projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages