Documentation ¶
Index ¶
- func BoolPtr(b bool) *bool
- func Complex128Ptr(c complex128) *complex128
- func Complex64Ptr(c complex64) *complex64
- func Float32Ptr(f float32) *float32
- func Float64Ptr(f float64) *float64
- func Int16Ptr(i int16) *int16
- func Int32Ptr(i int32) *int32
- func Int64Ptr(i int64) *int64
- func Int8Ptr(i int8) *int8
- func IntPtr(i int) *int
- func StrPtr(s string) *string
- func Uint16Ptr(u uint16) *uint16
- func Uint32Ptr(u uint32) *uint32
- func Uint64Ptr(u uint64) *uint64
- func Uint8Ptr(u uint8) *uint8
- func UintPtr(u uint) *uint
- type TypeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Complex128Ptr ¶
func Complex128Ptr(c complex128) *complex128
Complex128Ptr complex128 to *complex128
Types ¶
type TypeInfo ¶
type TypeInfo struct {
// contains filtered or unexported fields
}
TypeInfo is a type info
func NewTypeInfo ¶
func NewTypeInfo(v interface{}) TypeInfo
NewTypeInfo instrospects v and returns a TypeInfo
func (TypeInfo) IsNillable ¶
IsNillable returns true if the type is nillable (i.e. slices, maps and pointers)
func (TypeInfo) Name ¶
Name returns the name of the type within its package for a defined type.
This also works with arrays, slices and pointers.
Click to show internal directories.
Click to hide internal directories.