Versions in this module Expand all Collapse all v0 v0.2.5 Sep 4, 2025 v0.2.4 Aug 9, 2025 Changes in this version + func RegisterVar(v Var) + type BoolVar struct + func RegisterBoolVar(name string, defaultValue bool, description string) BoolVar + func (v BoolVar) Get() bool + func (v BoolVar) Lookup() (bool, bool) + type DurationVar struct + func RegisterDurationVar(name string, defaultValue time.Duration, description string) DurationVar + func (v DurationVar) Get() time.Duration + func (v DurationVar) Lookup() (time.Duration, bool) + type FloatVar struct + func RegisterFloatVar(name string, defaultValue float64, description string) FloatVar + func (v FloatVar) Get() float64 + func (v FloatVar) Lookup() (float64, bool) + type GenericVar struct + func Register[T Parseable](name string, defaultValue T, description string) GenericVar[T] + func (v GenericVar[T]) Get() T + func (v GenericVar[T]) GetName() string + func (v GenericVar[T]) IsSet() bool + func (v GenericVar[T]) Lookup() (T, bool) + type IntVar struct + func RegisterIntVar(name string, defaultValue int, description string) IntVar + func (v IntVar) Get() int + func (v IntVar) Lookup() (int, bool) + type Parseable interface + type StringVar struct + func RegisterStringVar(name string, defaultValue string, description string) StringVar + func (v StringVar) Get() string + func (v StringVar) Lookup() (string, bool) + type Var struct + DefaultValue string + Deprecated bool + Description string + GoType string + Hidden bool + Name string + Type VarType + func VarDescriptions() []Var + type VarType byte + const BOOL + const DURATION + const FLOAT + const INT + const OTHER + const STRING + type VariableInfo interface + GetName func() string + IsSet func() bool