config

package
v0.0.0-...-77f7900 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2018 License: MIT Imports: 3 Imported by: 10

Documentation

Index

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.

type Source

type Source interface {
	Value(namespaces []string, key string) interface{}
}

Source provides

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL