Documentation ¶
Index ¶
- func CamelString(s string) string
- func CopyFile(src, dst string) (ok bool, err error)
- func CopyPath(src, dst string) (ok bool, err error)
- func CreateMod(root string) (err error)
- func FmtCode() (err error)
- func GenProto(name string) (err error)
- func GetApiPrefix() (apiPrefix string, err error)
- func GetFileInfo(src string) os.FileInfo
- func GetMethod(name string) (method string)
- func GetPwd() (dir string)
- func IsExistsFile(path string) (ok bool, err error)
- func IsExitsDir(dir string) (ok bool, err error)
- func Mkdir(dir string) (err error)
- func ReadAll(filePth string) ([]byte, error)
- func Replace(content, mod, camel, class, snake, hyphen string) (tpl string)
- func ReplaceAll(root, old, new string) (err error)
- func ReplaceHttp(content, mod, camel, class, snake, hyphen, apiPrefix string) (tpl string)
- func SnakeString(s string) string
- func TransformName(name string) (camel, class, snake, hyphen string)
- func Unwrap(err error) (uerr error)
- func WriteToFile(fileName string, content string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelString ¶
func GetApiPrefix ¶ added in v1.1.2
func GetFileInfo ¶ added in v0.0.6
func IsExistsFile ¶ added in v0.0.6
func IsExitsDir ¶ added in v0.0.6
func ReplaceAll ¶ added in v0.0.6
func ReplaceHttp ¶ added in v1.1.2
func SnakeString ¶
func TransformName ¶ added in v0.0.6
func WriteToFile ¶ added in v0.0.6
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.