tstruct

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 1 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) 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() string

MarshalCodeTemplate returns code template marshaling the data

func (Builder) SizeCodeTemplate

func (b Builder) SizeCodeTemplate() 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() 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