Documentation
¶
Index ¶
- func AppendFileCode(filePath, searchCode, addCode, find string) (string, error)
- func AppendStrCode(str, searchCode, addCode, find string) (string, error)
- func CreteFile(dir string, fileName string) (fp *os.File, created bool, err error)
- func FormatCode(code string) string
- func GenFile(c FileGenConfig) error
- func GenFileCover(c FileGenConfig) error
- func GetDir(method string, name string) string
- func GetPackage(wd string) (string, error)
- func MaybeCreteFile(dir string, fileName string) (fp *os.File, created bool, err error)
- func Md5ByString(str string) string
- func MustConfig(path string, config interface{})
- func ToLowers(str ...*string)
- func ToUppers(str ...*string)
- func UpperOne(str string) string
- func WriteInfile(filePath, code string) error
- type FileGenConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFileCode ¶ added in v0.1.2
func AppendStrCode ¶ added in v0.1.2
func FormatCode ¶
func GenFile ¶
func GenFile(c FileGenConfig) error
func GenFileCover ¶
func GenFileCover(c FileGenConfig) error
func GetPackage ¶
func MaybeCreteFile ¶
func Md5ByString ¶
func MustConfig ¶
func MustConfig(path string, config interface{})
func WriteInfile ¶
Types ¶
type FileGenConfig ¶
Click to show internal directories.
Click to hide internal directories.