Skip to content

Instantly share code, notes, and snippets.

@eamonnmcevoy
Created March 13, 2017 10:23
Show Gist options
  • Save eamonnmcevoy/9372d8caafd481130d3ddf86769d8de2 to your computer and use it in GitHub Desktop.
Save eamonnmcevoy/9372d8caafd481130d3ddf86769d8de2 to your computer and use it in GitHub Desktop.
package root
type MongoConfig struct {
Ip string `json:"ip"`
DbName string `json:"dbName"`
}
type ServerConfig struct {
Port string `json:"port"`
}
type AuthConfig struct {
Secret string `json:"secret"`
}
type Config struct {
Mongo *MongoConfig `json:"mongo"`
Server *ServerConfig `json:"server"`
Auth *AuthConfig `json:"auth"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment