Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseMapFS ¶
ParseMapFS parses a set of boilerplate directories. it expects that the file structure is as follows:
- one
- one/example
- two
- two/something_else
and these will be parsed as boilerplates 'one' and 'two'
Types ¶
type Boilerplate ¶
func (Boilerplate) Generate ¶
func (bp Boilerplate) Generate(data any) (Result, error)
Generate a map of files for the boilerplate.
func (*Boilerplate) ParseMetadata ¶
func (b *Boilerplate) ParseMetadata(fsys fs.FS, path string) error
Click to show internal directories.
Click to hide internal directories.