Documentation ¶
Index ¶
- func RenderTemplates(afs afero.Fs, path string, target string, data any, _ ...TemplateOption) error
- func Walk(afs afero.Fs, abs string, fileProcessor ProcessFunc, dirProcessor ProcessFunc) error
- func WriteFile(afs afero.Fs, path string, writers ...func(f afero.File) error) error
- type ProcessFunc
- type TemplateOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderTemplates ¶
func Walk ¶
func Walk(afs afero.Fs, abs string, fileProcessor ProcessFunc, dirProcessor ProcessFunc) error
Walk a directory tree and execute the appropriate function.
Types ¶
type ProcessFunc ¶
func SkipDirs ¶
func SkipDirs(dirs ...string) ProcessFunc
type TemplateOption ¶
type TemplateOption interface{}
Click to show internal directories.
Click to hide internal directories.