Documentation
¶
Index ¶
- func Instantiate[T any](model Model[T], params ...Param) T
- type BaseType
- type Deserializer
- type Field
- func (f Field[T]) Size() uint
- func (f Field[T]) WriteBool(into T, b bool) T
- func (f Field[T]) WriteInt(into T, num int) T
- func (f Field[T]) WriteInt16(into T, num int16) T
- func (f Field[T]) WriteInt32(into T, num int32) T
- func (f Field[T]) WriteInt64(into T, num int64) T
- func (f Field[T]) WriteInt8(into T, num int8) T
- func (f Field[T]) WriteString(into T, value string) T
- func (f Field[T]) WriteUInt(into T, num uint) T
- func (f Field[T]) WriteUInt16(into T, num uint16) T
- func (f Field[T]) WriteUInt32(into T, num uint32) T
- func (f Field[T]) WriteUInt64(into T, num uint64) T
- func (f Field[T]) WriteUInt8(into T, num uint8) T
- func (f Field[T]) WriteUPtr(into T, src unsafe.Pointer) T
- type Model
- type NameDeserializer
- type Param
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Instantiate ¶
Types ¶
type Deserializer ¶
type Deserializer interface { Descend(field reflect.StructField) Ascend() Visit(field reflect.StructField) string }
type Field ¶
func (Field[T]) WriteInt16 ¶
func (Field[T]) WriteInt32 ¶
func (Field[T]) WriteInt64 ¶
func (Field[T]) WriteString ¶
func (Field[T]) WriteUInt16 ¶
func (Field[T]) WriteUInt32 ¶
func (Field[T]) WriteUInt64 ¶
func (Field[T]) WriteUInt8 ¶
type Model ¶
type Model[T any] struct { // contains filtered or unexported fields }
func NewModel ¶
func NewModel[T any](deserializer Deserializer) Model[T]
type NameDeserializer ¶
type NameDeserializer struct {
// contains filtered or unexported fields
}
func (*NameDeserializer) Ascend ¶
func (n *NameDeserializer) Ascend()
func (*NameDeserializer) Descend ¶
func (n *NameDeserializer) Descend(field reflect.StructField)
func (*NameDeserializer) Visit ¶
func (n *NameDeserializer) Visit(field reflect.StructField) (name string)
Click to show internal directories.
Click to hide internal directories.