convert

package
v0.0.0-...-289f9df Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolTo

func BoolTo(src reflect.Value, kind reflect.Kind) (result reflect.Value, err error)

func FloatTo

func FloatTo(src reflect.Value, kind reflect.Kind) (result reflect.Value, err error)

func IntTo

func IntTo(src reflect.Value, kind reflect.Kind) (result reflect.Value, err error)

func MustTo

func MustTo[T any](src any) (result T)

func StringTo

func StringTo(src reflect.Value, kind reflect.Kind) (result reflect.Value, err error)

func To

func To[T any](src any) (result T, err error)

func ToKind

func ToKind(src any, kind reflect.Kind) (result reflect.Value, err error)

func ToKindValue

func ToKindValue(src reflect.Value, kind reflect.Kind) (result reflect.Value, err error)

func UintTo

func UintTo(src reflect.Value, kind reflect.Kind) (result reflect.Value, 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