Documentation
¶
Index ¶
- Constants
- func Camel2snake(s string) string
- func CopyFile(srcPath, destPath string) error
- func CopyTemplate(srcPath, destPath string, value interface{}) error
- func FormatTemplateName(filePath string) string
- func IsTemplateFile(filePath string) bool
- func LowerFirst(src string) string
- func SafeMkdir(target string) error
- func Snake2camel(s string) string
- func UpperFirst(src string) string
- func Walk(root string, walkFn WalkFunc) error
- func WalkFile(src, target string, handler func(src, target string) error) error
- type WalkFunc
Constants ¶
View Source
const ( TempFileSuffix = ".xtpl" TempFileSuffixLen = 5 )
Variables ¶
This section is empty.
Functions ¶
func Camel2snake ¶
func CopyTemplate ¶
func FormatTemplateName ¶
func IsTemplateFile ¶
func LowerFirst ¶
func UpperFirst ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.