Documentation
¶
Index ¶
- Variables
- func DeriveModuleName(projectDir string) string
- func GetMinimalTemplate() (fs.FS, error)
- func GetTemplate(name string) (fs.FS, error)
- func ProcessContent(content []byte, isTemplate bool, data TemplateData) []byte
- func ProcessFilename(filename string, data TemplateData) (string, bool)
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidTemplate = errors.New("invalid template name")
Functions ¶
func DeriveModuleName ¶
func GetMinimalTemplate ¶
func ProcessContent ¶
func ProcessContent(content []byte, isTemplate bool, data TemplateData) []byte
func ProcessFilename ¶
func ProcessFilename(filename string, data TemplateData) (string, bool)
Types ¶
type TemplateData ¶
type TemplateData struct {
Module string
}
Click to show internal directories.
Click to hide internal directories.