generator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 8 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 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 map[*types.Var]handlers.Type,
) *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