// New creates new config object
New creates new config object
// New creates new config object
func New(fileName string) (config *Config, err error) {
	file, err := os.Open(fileName)
	if err != nil {
		return config, err
	}
	config = &Config{}
	decoder := json.NewDecoder(file)
	if err = decoder.Decode(config); err != nil {
		return config, err
	}
	return config, nil
}
func New ( fileName string ) ( config * Config , err error ) { file , err := os . Open ( fileName ) if err != nil { return config , err } config = & Config { } decoder := json . NewDecoder ( file ) if err = decoder . Decode ( config ) ; err != nil { return config , err } return config , nil }
New creates new config object
New creates new config object