types

package
v0.0.0-...-0b70e59 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(typ string) bool

Types

type Value

type Value interface {
	IsNil() bool
	Int() int
	Int64() int64
	Int32() int32
	Uint32() uint32
	Uint64() uint64
	Float32() float32
	Float64() float64
	String() string
	Bool() bool
	Time() time.Time
	Duration() time.Duration
}

func CastValue

func CastValue(typ, rawValue string) (Value, error)

func NewNilValue

func NewNilValue() Value

func NewValue

func NewValue(value any) Value

Jump to

Keyboard shortcuts

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