generator

package
v0.1.4-alpha-114b082 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Generators = generators

Generators returns the qualified paths (including the package name) to the code generator functions for the given command, an error if the command is not supported. Generators is a public variable so that external code (e.g. plugins) may override the default generators.

Functions

func Generate

func Generate(dir string, scriptInfo expr.ScriptInfo, update bool, addServer bool) (outputs []string, err1 error)

Generate runs the code generation algorithms.

func Script

func Script(rootPkg string, rootDir string, scriptInfo expr.ScriptInfo) ([]*codegen.File, error)

Script add generate code of script

func Server

func Server(rootPkg string, rootDir string, scriptInfo expr.ScriptInfo) ([]*codegen.File, error)

Server add generate code of server

func Store

func Store(rootPkg string, rootDir string, scriptInfo expr.ScriptInfo) ([]*codegen.File, error)

Store add generate code of script store

Types

type Genfunc

type Genfunc func(rootPkg string, rootDir string, scriptInfo expr.ScriptInfo) ([]*codegen.File, error)

Genfunc is the type of the functions invoked to generate code.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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