//Returns true if file was loaded correctly
Returns true if file was loaded correctly
// Returns true if file was loaded correctly
func LoadJsonFile(file string, i interface{}) bool {
	f, err := os.Open(file)
	defer f.Close()
	if err == nil {
		err = json.NewDecoder(f).Decode(i)
		if err == nil {
			return true
		} else {
			panic(err)
			return false
		}
	}
	if os.IsNotExist(err) {
		return false
	}
	panic(err)
	return false
}
func LoadJsonFile ( file string , i interface { } ) bool { f , err := os . Open ( file ) defer f . Close ( ) if err == nil { err = json . NewDecoder ( f ) . Decode ( i ) if err == nil { return true } else { panic ( err ) return false } } if os . IsNotExist ( err ) { return false } panic ( err ) return false }
Returns true if file was loaded correctly
Returns true if file was loaded correctly