Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFileNotFound is returned when provider is unable to locate file. ErrFileNotFound = errors.New("file not found") // ErrPermissionDenied is returned when provider doesn't have permissions to open file. ErrPermissionDenied = errors.New("permission denied") )
Functions ¶
This section is empty.
Types ¶
type EmbedFSProvider ¶
type EmbedFSProvider struct {
// contains filtered or unexported fields
}
EmbedFSProvider is an wrapper for embed.FS that provides implementation of provider interface accepted by projector.Generator.
func NewEmbedFSProvider ¶
func NewEmbedFSProvider(fs *embed.FS, root string) *EmbedFSProvider
type File ¶
File is actually mapping between template file and output file. Also template syntax allowed in Output field.
type Manifest ¶
type Manifest struct { Name string `toml:"name"` Author string `toml:"author"` URL string `toml:"url,omitempty"` Version string `toml:"version"` Description string `toml:"description"` Steps Steps `toml:"steps"` }
Manifest contains all metadata related to project template and actual steps of project generation.
type RealFSProvider ¶
type RealFSProvider struct {
// contains filtered or unexported fields
}
RealFSProvider is an wrapper for file system that provides implementation of provider interface accepted by projector.Generator.
func NewRealFSProvider ¶
func NewRealFSProvider(root string) *RealFSProvider
Click to show internal directories.
Click to hide internal directories.