cas

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBool

func ToBool(v any) (b bool, err error)

func ToDuration

func ToDuration(v any) (d time.Duration, err error)

func ToFloat32

func ToFloat32(v any) (n float32, err error)

func ToFloat64

func ToFloat64(v any) (n float64, err error)

func ToInt

func ToInt(v any) (n int, err error)

func ToInt16

func ToInt16(v any) (n int16, err error)

func ToInt32

func ToInt32(v any) (n int32, err error)

func ToInt64

func ToInt64(v any) (n int64, err error)

func ToInt8

func ToInt8(v any) (n int8, err error)

func ToString

func ToString(v any) (s string, err error)

func ToTime

func ToTime(v any) (t time.Time, err error)

func ToUint

func ToUint(v any) (n uint, err error)

func ToUint16

func ToUint16(v any) (n uint16, err error)

func ToUint32

func ToUint32(v any) (n uint32, err error)

func ToUint64

func ToUint64(v any) (n uint64, err error)

func ToUint8

func ToUint8(v any) (n uint8, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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