basickind

package
v0.0.0-...-4675295 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertKindToStruct

func ConvertKindToStruct(kind Kind, val interface{}) (r interface{})

func DefaultValue

func DefaultValue(typ Kind) interface{}

Types

type Kind

type Kind int
const (
	Invalid Kind = iota
	Bool         //1
	Int8
	Int16
	Int32
	Int64 //5
	Uint8
	Uint16
	Uint32
	Uint64
	Float32 //10
	Float64
	String
	Bytes //13
)

func GetBasicKind

func GetBasicKind(val interface{}) (r Kind)

func NameToBasicKind

func NameToBasicKind(val string) (r Kind)

func NameToValue

func NameToValue(name string) Kind

func ReflectKindToBasicKind

func ReflectKindToBasicKind(kind reflect.Kind) (r Kind)

func (Kind) String

func (k Kind) String() string

Jump to

Keyboard shortcuts

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