generator

package
v0.2.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 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, addServer bool) ([]string, error)

Generate runs the code generation algorithms.

func Script

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

Script add generate code of script

func Server

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

Server add generate code of server

func Store

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

Store add generate code of script store

Types

type Genfunc

type Genfunc func(rootPkg, 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