generator

package
v0.0.0-...-0dd21e6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	File *importer.File

	Options struct {
		// GenGetter:
		//	0: disabled
		//	1: generate getters for pointer fields
		//	2: generate getters for all fields
		GenGetter int
		// GenMarshal:
		//	0: disabled
		//	1: generate Marshal helper
		//	2: generate Marshal specific methods without reflection
		GenMarshal int
		GenSize    bool
	}
	// contains filtered or unexported fields
}

func New

func New(file *importer.File) *Generator

func (*Generator) Generate

func (g *Generator) Generate(out io.Writer)

func (*Generator) Pf

func (g *Generator) Pf(format string, args ...interface{})

func (*Generator) Pln

func (g *Generator) Pln(args ...interface{})

type GoPackage

type GoPackage struct {
	Path  string
	Alias string
}

Jump to

Keyboard shortcuts

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