golang

package
v0.0.0-...-02bf512 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoGenerator

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

GoGenerator generates Go code

func Of

func Of() GoGenerator

Construct a GoGenerator

func (*GoGenerator) Dir

func (gg *GoGenerator) Dir(name string) code.Generator

Dir implements code.Generator using code.BaseGenerator

func (*GoGenerator) Funcs

func (gg *GoGenerator) Funcs(funcs ...code.FuncDef) code.Generator

Funcs implements code.Generator

func (GoGenerator) GetBasePath

func (gg GoGenerator) GetBasePath() string

GetBasePath implements code.Generator using code.BaseGenerator

func (*GoGenerator) GlobalConsts

func (gg *GoGenerator) GlobalConsts(constants ...code.VarDef) code.Generator

GlobalConsts implements code.Generator

func (*GoGenerator) GlobalVars

func (gg *GoGenerator) GlobalVars(globals ...code.VarDef) code.Generator

GlobalVars implements code.Generator

func (*GoGenerator) SetBasePath

func (gg *GoGenerator) SetBasePath(basePath string) code.Generator

SetBasePath implements code.Generator using code.BaseGenerator

func (*GoGenerator) Src

func (gg *GoGenerator) Src(name string) code.Generator

Src implements code.Generator using code.BaseGenerator

func (*GoGenerator) Types

func (gg *GoGenerator) Types(objects ...code.ObjectDef) code.Generator

Types implements code.Generator

Jump to

Keyboard shortcuts

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