util/misc.go
func ReadJSONFile(name string, data interface{}) error {
	file, err := os.Open(name)
	if err != nil {
		return err
	}
	defer file.Close()

	return json.NewDecoder(file).Decode(data)
}
func ReadJSONFile(name string, data interface{}) error {
	file, err := os.Open(name)
	if err != nil {
		return err
	}
	defer file.Close()

	return json.NewDecoder(file).Decode(data)
}
func ReadJSONFile ( name string , data interface { } ) error { file , err := os . Open ( name ) if err != nil { return err } defer file . Close ( ) return json . NewDecoder ( file ) . Decode ( data ) }
// ReadJSONFile reads and parses a JSON file filling a given data instance.
ReadJSONFile reads and parses a JSON file filling a given data instance .