generator

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package generator generates code.

Index

Constants

View Source
const (
	GenerateFunction = "template.Generate"
)

Variables

This section is empty.

Functions

func Generate

func Generate(gen *models.Generator, output bool, write bool) (string, error)

Generate outputs the generated code (with gofmt).

func GenerateCode added in v0.3.0

func GenerateCode(gen *models.Generator) (string, error)

GenerateCode generates code using the default .go template.

func GenerateTemplate added in v0.3.0

func GenerateTemplate(gen *models.Generator) (string, error)

GenerateTemplate generates code using a text/template file (.tmpl).

Types

This section is empty.

Directories

Path Synopsis
Package interpreter interprets template code at runtime.
Package interpreter interprets template code at runtime.
extract
Package extract uses the `yaegi extract` tool in order to generate the reflect.Value symbols of internal types.
Package extract uses the `yaegi extract` tool in order to generate the reflect.Value symbols of internal types.
Package template provides a template used by copygen to generate custom code.
Package template provides a template used by copygen to generate custom code.

Jump to

Keyboard shortcuts

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