template

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HandlerFileTemplate = `` /* 272-byte string literal not displayed */

	HandlerPageFileTemplate = `` /* 242-byte string literal not displayed */

)
View Source
const (
	ComponentFileTemplate = `` /* 338-byte string literal not displayed */

)
View Source
const (
	FormFileTemplate = `` /* 473-byte string literal not displayed */

)
View Source
const (
	MigrationFileContent = `` /* 200-byte string literal not displayed */

)
View Source
const (
	MigratorFileContent = `` /* 255-byte string literal not displayed */

)
View Source
const (
	ModuleFileTemplate = `module %[1]s

go %[2]s
`
)
View Source
const (
	PageFileTemplate = `` /* 191-byte string literal not displayed */

)
View Source
const (
	PropsFileTemplate = `package %[1]s

type Props struct {
}

`
)
View Source
const (
	RouteFileTemplate = `` /* 255-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func CreateComponentFileTemplate

func CreateComponentFileTemplate(packageName, componentCamelName, componentKebabName string) string

func CreateFormFileTemplate

func CreateFormFileTemplate(packageName, formName string) string

func CreateHandlerFileTemplate

func CreateHandlerFileTemplate(packageName, handlerName string) string

func CreateHandlerPageFileTemplate added in v0.1.2

func CreateHandlerPageFileTemplate(handlerInfo, pageInfo model.FileInfo) string

func CreateModuleFileTemplate added in v0.1.2

func CreateModuleFileTemplate(moduleName, version string) string

func CreatePageFileTemplate

func CreatePageFileTemplate(packageName, pageName string) string

func CreatePropsFileTemplate added in v0.1.2

func CreatePropsFileTemplate(packageName string) string

func CreateRouteFileTemplate added in v0.1.2

func CreateRouteFileTemplate(packageName, moduleName, handlerPackageName, handlerName string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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