ltype

package
v0.0.0-...-157c9c8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Err       = reflector.Type[error]()
	String    = reflector.Type[string]()
	Byte      = reflector.Type[byte]()
	ByteSlice = reflect.SliceOf(Byte)

	Int   = reflector.Type[int]()
	Int8  = reflector.Type[int8]()
	Int16 = reflector.Type[int16]()
	Int32 = reflector.Type[int32]()
	Int64 = reflector.Type[int64]()

	Float32 = reflector.Type[float32]()
	Float64 = reflector.Type[float64]()

	IsPtrToStruct = filter.IsKind(reflect.Ptr).
					And(filter.IsKind(reflect.Struct).Elem())
)

Functions

func CheckStructPtr

func CheckStructPtr(t reflect.Type) reflect.Type

CheckStructPtr returns nil if t is not a pointer to a struct. If it is, it returns the struct.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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