template

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NAME_go_contentTpl = `package {{ .Name }}

// TODO(dtm): Add your logic here.
`
View Source
var NAME_go_dirTpl = "internal/pkg/plugin/{{ .Name }}/"
View Source
var NAME_go_nameTpl = "{{ .Name }}.go"
View Source
var NAME_plugin_md_contentTpl = `# *{{ .Name }}* Plugin

// TODO(dtm): Add your document here.
`

TODO(daniel-hutao): * -> `

View Source
var NAME_plugin_md_dirTpl = "docs/plugins/"
View Source
var NAME_plugin_md_nameTpl = "{{ .Name }}.md"
View Source
var README_when_create_plugin_md_contentTpl = `` /* 144-byte string literal not displayed */
View Source
var README_when_create_plugin_md_dirTpl = "./"
View Source
var README_when_create_plugin_md_nameTpl = "README_when_create_plugin.md"
View Source
var TplFiles = make([]TplFile, 0)

TplFiles filled by functions at other go files. eg. internal/pkg/develop/plugin/template/create.go init()

Functions

This section is empty.

Types

type File

type File struct {
	Name    string
	Dir     string
	Content string
}

File is a rendered TplFile that doesn't contain any template tags like "{{ .Name }}".

type TplFile

type TplFile struct {
	NameTpl    string
	DirTpl     string
	ContentTpl string
}

TplFile is a file contains some template tags like "{{ .Name }}". eg. internal/pkg/develop/plugin/template/create.go is a TplFile.

Jump to

Keyboard shortcuts

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