lib

package
v0.0.0-...-9b663ca Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCode

func GenerateCode(input *Input, tplPath, outputPath string)

Types

type Column

type Column struct {
	Name    string
	Type    string
	TSType  string
	Comment string
}

type Input

type Input struct {
	Module           string
	ModuleName       string
	Name             string
	LowerName        string
	TitleName        string
	LowerTitleName   string
	Columns          []*Column
	InputComponents  string
	ShowComponents   string
	CustomComponents string
	HasTime          string
}

func GetInput

func GetInput(data interface{}, module, moduleName string) *Input

type Output

type Output struct {
	RawName  string
	FileName string
}

Jump to

Keyboard shortcuts

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