Documentation
¶
Index ¶
- func DerefType(t reflect.Type) (reflect.Type, bool)
- func IsFloatKind(kind reflect.Kind) bool
- func IsNilLikeExceptNone(v any) bool
- func IsNumericKind(kind reflect.Kind) bool
- func IsScalarType(t reflect.Type) bool
- func IsSignedIntKind(kind reflect.Kind) bool
- func IsUnsignedIntKind(kind reflect.Kind) bool
- func NewValueWithAnonymousPointerFields(t reflect.Type) reflect.Value
- func TypeImplements(t reflect.Type, iface reflect.Type) bool
- type StructField
- type StructShape
- type Value
- func (value Value) BoolBase() (reflect.Value, bool)
- func (value Value) DeleteMapValue(key reflect.Value)
- func (value Value) Deref() reflect.Value
- func (value Value) EnsureDeref() (reflect.Value, bool)
- func (value Value) EnsureMap() bool
- func (value Value) EnsurePointerElem() (reflect.Value, bool)
- func (value Value) FloatBase() (reflect.Value, bool)
- func (value Value) FormatKey() string
- func (value Value) InterfaceImpl(iface reflect.Type) (reflect.Value, bool)
- func (value Value) MakeSlice(length int) reflect.Value
- func (value Value) MapBase() (reflect.Value, bool)
- func (value Value) MapValueCopy(key reflect.Value) (reflect.Value, bool)
- func (value Value) NewElemValue() reflect.Value
- func (value Value) PointsToNil() bool
- func (value Value) ResolveField(name string) (val reflect.Value, exists bool, write_back func(reflect.Value))
- func (value Value) SetEmptySlice() bool
- func (value Value) SetMapValue(key, val reflect.Value)
- func (value Value) SetScalarFromString(raw string) error
- func (value Value) SetZero()
- func (value Value) SettableCopy() reflect.Value
- func (value Value) SignedIntBase() (reflect.Value, bool)
- func (value Value) SliceOrArrayBase() (reflect.Value, bool)
- func (value Value) SortedMapKeys() []reflect.Value
- func (value Value) StringBase() (reflect.Value, bool)
- func (value Value) UnsignedIntBase() (reflect.Value, bool)
- func (value Value) WriteBool(base reflect.Value, b bool)
- func (value Value) WriteFloat(base reflect.Value, f float64)
- func (value Value) WriteInt(base reflect.Value, n int64)
- func (value Value) WriteString(base reflect.Value, s string)
- func (value Value) WriteUint(base reflect.Value, n uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFloatKind ¶
func IsNilLikeExceptNone ¶
func IsNumericKind ¶
func IsScalarType ¶
func IsSignedIntKind ¶
func IsUnsignedIntKind ¶
Types ¶
type StructField ¶
type StructField struct {
Field reflect.StructField
FieldName string
PublicName string
Type reflect.Type
DerefType reflect.Type
Index []int
TypeWasPointer bool
OptionalInPublicShape bool
OmitEmpty bool
OmitZero bool
Inline bool
Unknown bool
ViaOptionalEmbeddedField bool
}
func PublicStructFields ¶
func PublicStructFields(t reflect.Type) ([]StructField, error)
func (StructField) DerefStructType ¶
func (field StructField) DerefStructType() (reflect.Type, bool)
func (StructField) SettableCompositeValue ¶
func (StructField) SettableValue ¶
type StructShape ¶
type StructShape struct {
Fields []StructField
Inlined []StructField
Unknowns []StructField
}
func PublicStructShape ¶
func PublicStructShape(t reflect.Type) (StructShape, error)
type Value ¶
func (Value) DeleteMapValue ¶
func (Value) InterfaceImpl ¶
func (Value) MapValueCopy ¶
func (Value) NewElemValue ¶
func (Value) PointsToNil ¶
func (Value) ResolveField ¶
func (Value) SetEmptySlice ¶
func (Value) SetMapValue ¶
func (Value) SetScalarFromString ¶
func (Value) SettableCopy ¶
func (Value) SortedMapKeys ¶
Click to show internal directories.
Click to hide internal directories.