Skip to content

netbookai/confighelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

confighelper

confighelper provides additional feature to viper to support AutomativEnv without having any config file.

How to use

import "github.com/netbookai/confighelper"

//in you config handling code, call BindEnvs function and pass your struct object
configObj := Config{}
err := confighelper.BindEnvs(configObj)

//now this will work perfectly fine without having any empty config file
viper.AutomaticEnv()

reference: this comment by @krak3n

About

config helper

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors