cast

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBool

func ToBool(v any) bool

func ToInt

func ToInt(v any) int

func ToInt32Slice added in v0.1.12

func ToInt32Slice(v any) []int32

func ToInt64

func ToInt64(v any) int64

func ToIntSlice added in v0.1.11

func ToIntSlice(v any) []int

func ToJSONString added in v0.1.8

func ToJSONString(v any) (string, error)

ToJSONString converts any struct to JSON string.

func ToString

func ToString(v any) string

func ToUInt

func ToUInt(v any) uint

func ToUInt64

func ToUInt64(v any) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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