internal

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DurationValue

type DurationValue struct{ Value[time.Duration] }

func NewDurationValue

func NewDurationValue(defValue *time.Duration, value *time.Duration, checks ...value.CheckFunc[time.Duration]) DurationValue

func (DurationValue) Set

func (d DurationValue) Set(raw string) error

func (DurationValue) String

func (d DurationValue) String() string

type Float64Value added in v0.3.0

type Float64Value struct{ Value[float64] }

func NewFloat64Value added in v0.3.0

func NewFloat64Value(defValue *float64, value *float64, checks ...value.CheckFunc[float64]) Float64Value

func (Float64Value) Set added in v0.3.0

func (f Float64Value) Set(raw string) error

func (Float64Value) String added in v0.3.0

func (f Float64Value) String() string

type Int64Value added in v0.3.0

type Int64Value struct{ Value[int64] }

func NewInt64Value added in v0.3.0

func NewInt64Value(defValue *int64, value *int64, checks ...value.CheckFunc[int64]) Int64Value

func (Int64Value) Set added in v0.3.0

func (i Int64Value) Set(raw string) error

func (Int64Value) String added in v0.3.0

func (i Int64Value) String() string

type IntValue

type IntValue struct{ Value[int] }

func NewIntValue

func NewIntValue(defValue *int, value *int, checks ...value.CheckFunc[int]) IntValue

func (IntValue) Set

func (i IntValue) Set(raw string) error

func (IntValue) String

func (i IntValue) String() string

type StringValue

type StringValue struct{ Value[string] }

func NewStringValue

func NewStringValue(defValue *string, value *string, checks ...value.CheckFunc[string]) StringValue

func (StringValue) Set

func (s StringValue) Set(raw string) error

func (StringValue) String

func (s StringValue) String() string

type Uint64Value added in v0.3.0

type Uint64Value struct{ Value[uint64] }

func NewUint64Value added in v0.3.0

func NewUint64Value(defValue *uint64, value *uint64, checks ...value.CheckFunc[uint64]) Uint64Value

func (Uint64Value) Set added in v0.3.0

func (u Uint64Value) Set(raw string) error

func (Uint64Value) String added in v0.3.0

func (u Uint64Value) String() string

type UintValue added in v0.3.0

type UintValue struct{ Value[uint] }

func NewUintValue added in v0.3.0

func NewUintValue(defValue *uint, value *uint, checks ...value.CheckFunc[uint]) UintValue

func (UintValue) Set added in v0.3.0

func (u UintValue) Set(raw string) error

func (UintValue) String added in v0.3.0

func (u UintValue) String() string

type Value

type Value[T any] struct {
	// contains filtered or unexported fields
}

func (Value[_]) Get

func (v Value[_]) Get() any

func (Value[_]) Required

func (v Value[_]) Required() bool

Jump to

Keyboard shortcuts

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