Skip to content

Instantly share code, notes, and snippets.

@pedromg
Last active January 4, 2016 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedromg/8668335 to your computer and use it in GitHub Desktop.
Save pedromg/8668335 to your computer and use it in GitHub Desktop.
load environment values
/* load configs. defaults to dev environment. */
func load_environment(e string) bool {
var err error
if e == "" {
e = "dev"
}
configs, err = sstore.ReadFile("./configs/config_"+e+".sstore")
if err != nil {
return false
}
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment