reflecter

package
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStructFieldNamesNotStruct = errors.New("no struct")
)

Functions

func InstanceQualifiedName added in v1.0.33

func InstanceQualifiedName(t any) string

func InstanceSimpleName added in v1.0.33

func InstanceSimpleName(t any) string

func IsZero added in v1.0.33

func IsZero[T any](instance any) bool

func StructFieldNames added in v1.0.33

func StructFieldNames[T any]() ([]string, error)

func StructFieldNamesAndTypes added in v1.0.33

func StructFieldNamesAndTypes[T any]() (map[string]string, error)

func TypeBaseName added in v1.0.33

func TypeBaseName[T any]() string

func TypeQualifiedName added in v1.0.33

func TypeQualifiedName[T any]() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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