generator

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package generator makes code generation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlingTouple added in v0.7.0

type HandlingTouple struct {
	Var  *types.Var
	Hand handlers.Type
}

type OpLog

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

OpLog flat encoding/decoding code generation for operation log.

func NewOpLog

func NewOpLog(
	logger logger.Type,
	src *types.Named,
	typ *types.Named,
	hnd *types.Named,
	disp string,
	lenPrefix bool,
	r *renderer.Go,
	thands map[*types.Var]handlers.Type,
	encoderResultType *types.Tuple,
	missingWriteBuffer bool,
) *OpLog

NewOpLog construct new generator for interfaces instance.

func (*OpLog) Generate

func (g *OpLog) Generate()

Generate perform code generation.

type Struct

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

Struct flat encoding/decoding code generation for structures.

func NewStruct

func NewStruct(
	r *renderer.Go,
	src *types.Named,
	hands []HandlingTouple,
	pointer bool,
	encoderName, decoderName, sizeName string,
) *Struct

NewStruct constructs Struct instance.

func (*Struct) Generate

func (g *Struct) Generate()

Generate struct flat encoding/decoding.

Jump to

Keyboard shortcuts

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