// DefaultConfig returns a pointer to a populated Config object with sensible // default values. func DefaultConfig() *Config { config := Config{ Config: common.DefaultConfig(), } LoadEnvironment(&config) return &config }
// DefaultConfig returns a pointer to a populated Config object with sensible // default values. func DefaultConfig() *Config { hostname, _ := os.Hostname() config := Config{ Config: common.DefaultConfig(), Name: hostname, Deployments: []DeploymentConfig{}, } LoadEnvironment(&config) return &config }