Documentation ¶
Index ¶
- type Configurer
- func (c *Configurer) Activation(key string) evo.Activation
- func (c *Configurer) Activations(key string) []evo.Activation
- func (c *Configurer) Bool(key string) bool
- func (c *Configurer) Bools(key string) []bool
- func (c *Configurer) Comparison(key string) evo.Comparison
- func (c *Configurer) Comparisons(key string) []evo.Comparison
- func (c *Configurer) Float64(key string) float64
- func (c *Configurer) Float64s(key string) []float64
- func (c *Configurer) Int(key string) int
- func (c *Configurer) Ints(key string) []int
- func (c *Configurer) String(key string) string
- func (c *Configurer) Strings(key string) []string
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurer ¶
type Configurer struct {
Source
}
Configurer provides a query-based configuration helper
func (*Configurer) Activation ¶
func (c *Configurer) Activation(key string) evo.Activation
Activation returns the activation for the key or 0.
func (*Configurer) Activations ¶
func (c *Configurer) Activations(key string) []evo.Activation
Activations returns the slice of activations for the key or nil.
func (*Configurer) Bool ¶
func (c *Configurer) Bool(key string) bool
Bool returns the boolean value for the key or false.
func (*Configurer) Bools ¶
func (c *Configurer) Bools(key string) []bool
Bools returns the slice of boolean values for the key or nil.
func (*Configurer) Comparison ¶
func (c *Configurer) Comparison(key string) evo.Comparison
Comparison returns the comparison for the key or 0.
func (*Configurer) Comparisons ¶
func (c *Configurer) Comparisons(key string) []evo.Comparison
Comparisons returns the slice of comparisons for the key or nil.
func (*Configurer) Float64 ¶
func (c *Configurer) Float64(key string) float64
Float64 returns the float64 value for the key or 0.0.
func (*Configurer) Float64s ¶
func (c *Configurer) Float64s(key string) []float64
Float64s returns the slice of float64 values for the key or nil.
func (*Configurer) Int ¶
func (c *Configurer) Int(key string) int
Int returns the int value for the key or 0.
func (*Configurer) Ints ¶
func (c *Configurer) Ints(key string) []int
Ints returns the slice of int values for the key or nil.
func (*Configurer) String ¶
func (c *Configurer) String(key string) string
String returns the string value for the key or "".
func (*Configurer) Strings ¶
func (c *Configurer) Strings(key string) []string
Strings returns the slice of string values for the key or nil.