Documentation
¶
Index ¶
- type FsAPI
- func (f *FsAPI) Exists(path string) (bool, error)
- func (f *FsAPI) FilePathSeparator() string
- func (f *FsAPI) Mkdir(path string) error
- func (f *FsAPI) MkdirAll(path string) error
- func (f *FsAPI) ReadFile(path string) (string, error)
- func (f *FsAPI) Walk(root string, fc func(path string, info os.FileInfo, err error) error) error
- func (f *FsAPI) WriteFile(path string, data string, force bool) error
- type PlisAPI
- type PlisTemplateLoader
- type TemplateAPI
- func (t *TemplateAPI) CopyTemplate(name string, destination string, model map[string]interface{}) error
- func (t *TemplateAPI) CopyTemplateFolder(folder string, destination string, model map[string]interface{}, ...) error
- func (t *TemplateAPI) ReadTemplate(name string, model map[string]interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FsAPI ¶
type FsAPI struct {
// contains filtered or unexported fields
}
func (*FsAPI) FilePathSeparator ¶
type PlisAPI ¶
type PlisAPI struct {
// contains filtered or unexported fields
}
func NewPlisAPI ¶
func (*PlisAPI) ForceOverride ¶
type PlisTemplateLoader ¶
type PlisTemplateLoader struct {
// contains filtered or unexported fields
}
func (*PlisTemplateLoader) Abs ¶
func (ptl *PlisTemplateLoader) Abs(base, name string) string
type TemplateAPI ¶
type TemplateAPI struct {
// contains filtered or unexported fields
}
func NewTemplatesAPI ¶
func NewTemplatesAPI(templateFs *FsAPI, currentFs *FsAPI) *TemplateAPI
func (*TemplateAPI) CopyTemplate ¶
func (t *TemplateAPI) CopyTemplate(name string, destination string, model map[string]interface{}) error
func (*TemplateAPI) CopyTemplateFolder ¶
func (*TemplateAPI) ReadTemplate ¶
func (t *TemplateAPI) ReadTemplate(name string, model map[string]interface{}) (string, error)
Click to show internal directories.
Click to hide internal directories.