Documentation ¶
Index ¶
Constants ¶
DefaultMode defines default permission bits for template file
View Source
const JSONExt = ".json"
JSONExt - JSON extension
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader reads/writes process templates to path
func NewTemplateReader ¶
NewTemplateReader returns a new instance of template reader with given path. The path is also verified and crated if not existed
func (*Reader) GetAllTemplates ¶
GetAllTemplates reads all templates from reader's path. Error is returned if path is not a directory. All JSON file are read and un-marshaled as template objects
Click to show internal directories.
Click to hide internal directories.