func (conf *config) load(filename string) error {
	file, err := os.Open(filename)
	if err != nil {
		return err
	}
	defer file.Close()

	jdc := json.NewDecoder(file)
	err = jdc.Decode(conf)
	if err != nil {
		return err
	}

	return nil
}
/*
* load config from the given file into the global config struct
 */
load config from the given file into the global config struct
/ * * load config from the given file into the global config struct * /
func (conf *config) load(filename string) error {
	file, err := os.Open(filename)
	if err != nil {
		return err
	}
	defer file.Close()
	jdc := json.NewDecoder(file)
	err = jdc.Decode(conf)
	if err != nil {
		return err
	}
	return nil
}
func ( conf * config ) load ( filename string ) error { file , err := os . Open ( filename ) if err != nil { return err } defer file . Close ( ) jdc := json . NewDecoder ( file ) err = jdc . Decode ( conf ) if err != nil { return err } return nil }
load config from the given file into the global config struct
load config from the given file into the global config struct