envbinder

package module
v0.0.0-...-08c5e1e Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

go-envbinder

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidBoolValue = fmt.Errorf("Invalid Value for Bool")

Functions

func Bind

func Bind(v interface{}) error

Types

type EnvBinder

type EnvBinder struct {
	// contains filtered or unexported fields
}

func NewEnvBinder

func NewEnvBinder() (b EnvBinder)

func (*EnvBinder) BindError

func (b *EnvBinder) BindError() error

func (*EnvBinder) BindErrors

func (b *EnvBinder) BindErrors() []error

func (*EnvBinder) Bool

func (b *EnvBinder) Bool(v *bool, name string) *EnvBinder

func (*EnvBinder) BoolOrDef

func (b *EnvBinder) BoolOrDef(v *bool, name string, def bool) *EnvBinder

func (*EnvBinder) Bools

func (b *EnvBinder) Bools(v *[]bool, name string, sep string) *EnvBinder

func (*EnvBinder) BoolsOrDef

func (b *EnvBinder) BoolsOrDef(v *[]bool, name string, sep string, def []bool) *EnvBinder

func (*EnvBinder) Duration

func (b *EnvBinder) Duration(v *time.Duration, name string) *EnvBinder

func (*EnvBinder) DurationOrDef

func (b *EnvBinder) DurationOrDef(v *time.Duration, name string, def time.Duration) *EnvBinder

func (*EnvBinder) Int

func (b *EnvBinder) Int(v *int8, name string) *EnvBinder

func (*EnvBinder) Int16

func (b *EnvBinder) Int16(v *int16, name string) *EnvBinder

func (*EnvBinder) Int16OrDef

func (b *EnvBinder) Int16OrDef(v *int16, name string, def int16) *EnvBinder

func (*EnvBinder) Int16s

func (b *EnvBinder) Int16s(v *[]int16, name string, sep string) *EnvBinder

func (*EnvBinder) Int16sOrDef

func (b *EnvBinder) Int16sOrDef(v *[]int16, name string, sep string, def []int16) *EnvBinder

func (*EnvBinder) Int32

func (b *EnvBinder) Int32(v *int32, name string) *EnvBinder

func (*EnvBinder) Int32OrDef

func (b *EnvBinder) Int32OrDef(v *int32, name string, def int32) *EnvBinder

func (*EnvBinder) Int32s

func (b *EnvBinder) Int32s(v *[]int32, name string, sep string) *EnvBinder

func (*EnvBinder) Int32sOrDef

func (b *EnvBinder) Int32sOrDef(v *[]int32, name string, sep string, def []int32) *EnvBinder

func (*EnvBinder) Int64

func (b *EnvBinder) Int64(v *int64, name string) *EnvBinder

func (*EnvBinder) Int64OrDef

func (b *EnvBinder) Int64OrDef(v *int64, name string, def int64) *EnvBinder

func (*EnvBinder) Int64s

func (b *EnvBinder) Int64s(v *[]int64, name string, sep string) *EnvBinder

func (*EnvBinder) Int64sOrDef

func (b *EnvBinder) Int64sOrDef(v *[]int64, name string, sep string, def []int64) *EnvBinder

func (*EnvBinder) Int8

func (b *EnvBinder) Int8(v *int8, name string) *EnvBinder

func (*EnvBinder) Int8OrDef

func (b *EnvBinder) Int8OrDef(v *int8, name string, def int8) *EnvBinder

func (*EnvBinder) Int8s

func (b *EnvBinder) Int8s(v *[]int8, name string, sep string) *EnvBinder

func (*EnvBinder) Int8sOrDef

func (b *EnvBinder) Int8sOrDef(v *[]int8, name string, sep string, def []int8) *EnvBinder

func (*EnvBinder) IntOrDef

func (b *EnvBinder) IntOrDef(v *int, name string, def int) *EnvBinder

func (*EnvBinder) Ints

func (b *EnvBinder) Ints(v *[]int, name string, sep string, def []int) *EnvBinder

func (*EnvBinder) IntsOrDef

func (b *EnvBinder) IntsOrDef(v *[]int, name string, sep string, def []int) *EnvBinder

func (*EnvBinder) String

func (b *EnvBinder) String(v *string, name string) *EnvBinder

func (*EnvBinder) StringOrDef

func (b *EnvBinder) StringOrDef(v *string, name string, def string) *EnvBinder

func (*EnvBinder) Strings

func (b *EnvBinder) Strings(v *[]string, name string, sep string) *EnvBinder

func (*EnvBinder) StringsOrDef

func (b *EnvBinder) StringsOrDef(v *[]string, name string, sep string, def []string) *EnvBinder

func (*EnvBinder) Time

func (b *EnvBinder) Time(v *time.Time, name string, layout string) *EnvBinder

func (*EnvBinder) TimeOrDef

func (b *EnvBinder) TimeOrDef(v *time.Time, name string, layout string, def time.Time) *EnvBinder

Jump to

Keyboard shortcuts

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