Int lookups up the value using the provided key and converts the value to a int.
(key string)
| 192 | |
| 193 | // Int lookups up the value using the provided key and converts the value to a int. |
| 194 | func (c *Config) Int(key string) (int, error) { |
| 195 | return strconv.Atoi(c.get(key)) |
| 196 | } |
| 197 | |
| 198 | // Int64 lookups up the value using the provided key and converts the value to a int64. |
| 199 | func (c *Config) Int64(key string) (int64, error) { |