create

package
v0.0.0-...-bcd1edc Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// API_TPL_ROUTER name of the interface used to register the pull route in the template
	API_TPL_ROUTER = "__API_TPL__"
)
View Source
const MalatdGenLock = "__malatd__gen__.lock"

MalatdGenLock the file is used to markup generated project

View Source
const MalatdTpl = "__malatd__tpl__.go"

MalatdTpl template file name

Variables

This section is empty.

Functions

func CreateDoc

func CreateDoc(rootGroup string)

CreateDoc creates a project doc.

func CreateProject

func CreateProject()

CreateProject creates a project.

Types

type Model

type Model struct {
	ModelStyle       string
	PrimaryFields    []*field
	UniqueFields     []*field
	Fields           []*field
	IsDefaultPrimary bool
	Doc              string
	Name             string
	SnakeName        string
	LowerFirstName   string
	LowerFirstLetter string
	// contains filtered or unexported fields
}

func (Model) String

func (s Model) String() string

type Project

type Project struct {
	Name         string
	ImprotPrefix string
	// contains filtered or unexported fields
}

Project project Information

func NewProject

func NewProject(src []byte) *Project

NewProject new project.

func (Project) ApiHandlerList

func (t Project) ApiHandlerList() []*handler

func (Project) ApiHandlerString

func (t Project) ApiHandlerString(ctnFn func(*handler) string) string

func (*Project) Generator

func (p *Project) Generator()

func (Project) HandlerList

func (t Project) HandlerList() []*handler

func (Project) Parse

func (t Project) Parse() *tplInfo

func (Project) RouterString

func (t Project) RouterString(groupName string) string

func (Project) TypeImportString

func (t Project) TypeImportString() string

func (Project) TypesString

func (t Project) TypesString() string

Directories

Path Synopsis
tpl
Package main generated by go-bindata.
Package main generated by go-bindata.

Jump to

Keyboard shortcuts

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