src/client/client.go
func (c *cachedLoader) MustGetInt(key string) int {
	b, err := c.Get(key)
	if err != nil {
		panic(fmt.Sprintf("Could not fetch config (%s) %v", key, err))
	}

	var ret int
	err = json.Unmarshal(b, &ret)
	if err != nil {
		panic(fmt.Sprintf("Could not unmarshal config (%s) %v", key, err))
	}
	return ret
}
func (c *cachedLoader) MustGetInt(key string) int {
	b, err := c.Get(key)
	if err != nil {
		panic(fmt.Sprintf("Could not fetch config (%s) %v", key, err))
	}

	var ret int
	err = json.Unmarshal(b, &ret)
	if err != nil {
		panic(fmt.Sprintf("Could not unmarshal config (%s) %v", key, err))
	}
	return ret
}
func ( c * cachedLoader ) MustGetInt ( key string ) int { b , err := c . Get ( key ) if err != nil { panic ( fmt . Sprintf ( " " , key , err ) ) } var ret int err = json . Unmarshal ( b , & ret ) if err != nil { panic ( fmt . Sprintf ( " " , key , err ) ) } return ret }
// MustGetInt fetches the config and parses it into an int.  Panics on failure.
MustGetInt fetches the config and parses it into an int . Panics on failure .