Documentation ¶
Index ¶
- func CamelCase(s string) string
- func CheckError(err error, replaceError func(originErr error) error)
- func CopyFile(srcFile string, dstFile string) error
- func GetDirFiles(dir string) ([]string, error)
- func GetRootPackageName(projectAbsDir string) (string, error)
- func HasBlank(str ...string) bool
- func IDDTOJSONCase(s string) string
- func LeftLower(s string) string
- func LeftUpper(s string) string
- func LoadYAMLFile(yamlFilePath string, conf interface{}) error
- func ParseTemplate(inputFilePath string, conf interface{}) (string, error)
- func ParseTemplateFile(inputFilePath string, outputFilePath string, conf interface{}) error
- func ParseTemplateFileAppendToFile(inputFilePath string, outputFilePath string, conf interface{}) error
- func ParseTemplatesDir(templatesDir string, outputDir string, conf interface{}) error
- func PathExists(path string) bool
- func Plural(s string) string
- func RunCommand(name string, args ...string) error
- func SnakeCase(s string) string
- func StringBetween(content string, startStr string, endStr string) (startIndex int, num int, newContent string, betweenContent string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func GetDirFiles ¶
func GetRootPackageName ¶
func IDDTOJSONCase ¶
func LoadYAMLFile ¶
func ParseTemplate ¶
func ParseTemplateFile ¶
func ParseTemplatesDir ¶
func PathExists ¶
func RunCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.