golang

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenerator

func NewGenerator(params Params) types.Generator

NewGenerator creates a generator for Go.

Types

type Params

type Params struct {
	GoPackage string
}

Params are parameters for creating a Generator

type TmplData

type TmplData struct {
	*types.BaseTmplData
	GoPackage string
}

TmplData contains the Golang-specific data and the base data for the codegen.

func (*TmplData) BaseTmplDataInfo

func (td *TmplData) BaseTmplDataInfo() *types.BaseTmplData

BaseTmplDataInfo provides the base template data for the codegen.

Jump to

Keyboard shortcuts

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