GetFloat64 returns a config value as a float64.
(ns, key string)
| 412 | |
| 413 | // GetFloat64 returns a config value as a float64. |
| 414 | func (c *LiveConfig) GetFloat64(ns, key string) (float64, error) { |
| 415 | nskey := nskey(ns, key) |
| 416 | val := viper.GetFloat64(nskey) |
| 417 | |
| 418 | if isRequired(nskey) && val == 0.0 { |
| 419 | return 0.0, NewMissingArgsErr(nskey) |
| 420 | } |
| 421 | return val, nil |
| 422 | } |
| 423 | |
| 424 | // GetStringSlice returns a config value as a string slice. |
| 425 | func (c *LiveConfig) GetStringSlice(ns, key string) ([]string, error) { |
nothing calls this directly
no test coverage detected