Documentation ¶
Index ¶
- Variables
- func Bind(v interface{}) error
- type EnvBinder
- func (b *EnvBinder) BindError() error
- func (b *EnvBinder) BindErrors() []error
- func (b *EnvBinder) Bool(v *bool, name string) *EnvBinder
- func (b *EnvBinder) BoolOrDef(v *bool, name string, def bool) *EnvBinder
- func (b *EnvBinder) Bools(v *[]bool, name string, sep string) *EnvBinder
- func (b *EnvBinder) BoolsOrDef(v *[]bool, name string, sep string, def []bool) *EnvBinder
- func (b *EnvBinder) Duration(v *time.Duration, name string) *EnvBinder
- func (b *EnvBinder) DurationOrDef(v *time.Duration, name string, def time.Duration) *EnvBinder
- func (b *EnvBinder) Int(v *int8, name string) *EnvBinder
- func (b *EnvBinder) Int16(v *int16, name string) *EnvBinder
- func (b *EnvBinder) Int16OrDef(v *int16, name string, def int16) *EnvBinder
- func (b *EnvBinder) Int16s(v *[]int16, name string, sep string) *EnvBinder
- func (b *EnvBinder) Int16sOrDef(v *[]int16, name string, sep string, def []int16) *EnvBinder
- func (b *EnvBinder) Int32(v *int32, name string) *EnvBinder
- func (b *EnvBinder) Int32OrDef(v *int32, name string, def int32) *EnvBinder
- func (b *EnvBinder) Int32s(v *[]int32, name string, sep string) *EnvBinder
- func (b *EnvBinder) Int32sOrDef(v *[]int32, name string, sep string, def []int32) *EnvBinder
- func (b *EnvBinder) Int64(v *int64, name string) *EnvBinder
- func (b *EnvBinder) Int64OrDef(v *int64, name string, def int64) *EnvBinder
- func (b *EnvBinder) Int64s(v *[]int64, name string, sep string) *EnvBinder
- func (b *EnvBinder) Int64sOrDef(v *[]int64, name string, sep string, def []int64) *EnvBinder
- func (b *EnvBinder) Int8(v *int8, name string) *EnvBinder
- func (b *EnvBinder) Int8OrDef(v *int8, name string, def int8) *EnvBinder
- func (b *EnvBinder) Int8s(v *[]int8, name string, sep string) *EnvBinder
- func (b *EnvBinder) Int8sOrDef(v *[]int8, name string, sep string, def []int8) *EnvBinder
- func (b *EnvBinder) IntOrDef(v *int, name string, def int) *EnvBinder
- func (b *EnvBinder) Ints(v *[]int, name string, sep string, def []int) *EnvBinder
- func (b *EnvBinder) IntsOrDef(v *[]int, name string, sep string, def []int) *EnvBinder
- func (b *EnvBinder) String(v *string, name string) *EnvBinder
- func (b *EnvBinder) StringOrDef(v *string, name string, def string) *EnvBinder
- func (b *EnvBinder) Strings(v *[]string, name string, sep string) *EnvBinder
- func (b *EnvBinder) StringsOrDef(v *[]string, name string, sep string, def []string) *EnvBinder
- func (b *EnvBinder) Time(v *time.Time, name string, layout string) *EnvBinder
- func (b *EnvBinder) TimeOrDef(v *time.Time, name string, layout string, def time.Time) *EnvBinder
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidBoolValue = fmt.Errorf("Invalid Value for Bool")
Functions ¶
Types ¶
type EnvBinder ¶
type EnvBinder struct {
// contains filtered or unexported fields
}
func NewEnvBinder ¶
func NewEnvBinder() (b EnvBinder)
func (*EnvBinder) BindErrors ¶
func (*EnvBinder) BoolsOrDef ¶
func (*EnvBinder) DurationOrDef ¶
func (*EnvBinder) Int16OrDef ¶
func (*EnvBinder) Int16sOrDef ¶
func (*EnvBinder) Int32OrDef ¶
func (*EnvBinder) Int32sOrDef ¶
func (*EnvBinder) Int64OrDef ¶
func (*EnvBinder) Int64sOrDef ¶
func (*EnvBinder) Int8sOrDef ¶
func (*EnvBinder) StringOrDef ¶
func (*EnvBinder) StringsOrDef ¶
Click to show internal directories.
Click to hide internal directories.