reflection

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasUnexportedField

func HasUnexportedField(t reflect.Type) bool

HasUnexportedField returns true if the struct has unexported fields. It panics if the type's Kind is not Struct.

func Hashable

func Hashable(in reflect.Type) bool

Hashable returns true if the type can used as map key see https://blog.golang.org/maps

func IsCustomType

func IsCustomType(t reflect.Type) bool

IsCustomType returns true if the type is not predeclared

func IsLiteralType

func IsLiteralType(t reflect.Type) bool

func IsUnexportedField

func IsUnexportedField(field reflect.StructField) bool

IsUnexportedField returns true if the structField is not exported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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