xvalue

package
v0.0.0-...-f0a4171 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const False = "false"
View Source
const True = "true"

Variables

This section is empty.

Functions

func N2S

func N2S(val any) string

func S2Bool

func S2Bool(val string) bool

func S2F32

func S2F32(val string) float32

func S2F64

func S2F64(val string) float64

func S2I

func S2I(val string) int

func S2I32

func S2I32(val string) int32

func S2I64

func S2I64(val string) int64

func S2UI

func S2UI(val string) uint

func S2UI32

func S2UI32(val string) uint32

func S2UI64

func S2UI64(val string) uint64

Types

type Value

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

func NewValue

func NewValue(value interface{}) *Value

func (*Value) Any

func (s *Value) Any() any

func (*Value) Bool

func (s *Value) Bool() bool

func (*Value) Float

func (s *Value) Float() float64

func (*Value) Int

func (s *Value) Int() int64

func (*Value) SetValue

func (s *Value) SetValue(val interface{})

func (*Value) String

func (s *Value) String() string

Jump to

Keyboard shortcuts

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