templates

package
v0.126.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(input io.Reader) (io.Reader, error)

Format - call go fmt for generated code

func Generate

func Generate(fileSystem fs.FS, tplType, name string, vars any) (io.Reader, error)

Generate - execute template with given name and vars

func IsExist

func IsExist(fileSystem fs.FS, name, tplType string) bool

IsExist - search template in embedded file system

Types

This section is empty.

Jump to

Keyboard shortcuts

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