template

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

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const NotEditMark = `
// Code generated by github.com/wangpeng8/gorm_gen. DO NOT EDIT.
`

Variables

View Source
var (
	// TableQueryStruct table query struct
	TableQueryStruct = GetCodeTpl(`table`)

	// TableQueryStructWithContext table query struct with context
	TableQueryStructWithContext = GetCodeTpl(`table_context`)

	// TableQueryIface table query interface
	TableQueryIface = GetCodeTpl(`table_interface`)
)
View Source
var CRUDMethod = GetCodeTpl(`crud_method`)

CRUDMethod CRUD method

View Source
var CRUDMethodTest = GetCodeTpl(`crud_method_test`)

CRUDMethodTest CRUD method test

View Source
var DIYMethod = GetCodeTpl(`diy_method`)

DIYMethod DIY method

View Source
var DIYMethodTest = GetCodeTpl(`diy_method_test`)

DIYMethodTest DIY method test

View Source
var DIYMethodTestBasic = GetCodeTpl(`diy_method_test_basic`)

DIYMethodTestBasic DIY method test basic

View Source
var DefaultQuery = GetCodeTpl(`default_query`)

DefaultQuery default query

View Source
var Header = GetCodeTpl(`header`)
View Source
var Model = GetCodeTpl(`model`)

Model used as a variable because it cannot load template file after packed, params still can pass file

View Source
var ModelMethod = GetCodeTpl(`model_method`)

ModelMethod model struct DIY method

View Source
var QueryMethod = GetCodeTpl(`query_method`)

QueryMethod query method template

View Source
var QueryMethodTest = GetCodeTpl(`query_method_test`)

QueryMethodTest query method test template

Functions

func CodeSnippetJoin

func CodeSnippetJoin(str ...string) string

func GetCodeTpl

func GetCodeTpl(file string) string

func GetTemplateFs

func GetTemplateFs() embed.FS

Types

This section is empty.

Jump to

Keyboard shortcuts

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