templates

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidTemplate = errors.New("invalid template name")

Functions

func DeriveModuleName

func DeriveModuleName(projectDir string) string

func GetMinimalTemplate

func GetMinimalTemplate() (fs.FS, error)

func GetTemplate

func GetTemplate(name string) (fs.FS, error)

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
}

Jump to

Keyboard shortcuts

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