tstruct

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder generates the code.

func New

func New(fieldType reflect.Type, fieldBuilders []types.BuilderFactory, tm *types.TypeMap) Builder

New returns new code builder.

func (Builder) Dependencies

func (b Builder) Dependencies() []reflect.Type

Dependencies returns the list of other types which code must be generated for.

func (Builder) MarshalCodeTemplate

func (b Builder) MarshalCodeTemplate(_ *uint64) string

MarshalCodeTemplate returns code template marshaling the data.

func (Builder) SizeCodeTemplate

func (b Builder) SizeCodeTemplate(_ *uint64) string

SizeCodeTemplate returns code template computing the required size of buffer (above constant size) required to marshal the data.

func (Builder) UnmarshalCodeTemplate

func (b Builder) UnmarshalCodeTemplate(_ *uint64) string

UnmarshalCodeTemplate returns code template unmarshaling the data.

Jump to

Keyboard shortcuts

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