generator

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenStructCode

func GenStructCode(s domain.InputStruct, out *Output, readFnName, writeFnName string) error

Types

type Output

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

func NewOutput

func NewOutput(pkg *packages.Package) (o *Output)

func (*Output) Append

func (o *Output) Append(text string) *Output

func (*Output) AppendF

func (o *Output) AppendF(text string, args ...any) *Output

func (*Output) AppendImport

func (o *Output) AppendImport(imp string)

func (*Output) AppendNamedImport

func (o *Output) AppendNamedImport(name, imp string)

func (*Output) LF

func (o *Output) LF() *Output

func (Output) WriteTo

func (o Output) WriteTo(w io.Writer) (n int64, err error)

Jump to

Keyboard shortcuts

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