Documentation ¶
Index ¶
- func AddImportStatement(fileName, importName, alias string) error
- func Append(path string, content string) error
- func FindStringsBetween(str, reg string) string
- func Has(path string, content string) (bool, error)
- func ReplaceInDir(dirPath, oldStr, newStr string) error
- func Upload(file multipart.File, fileHeader *multipart.FileHeader, filepath string, ...) (string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddImportStatement ¶ added in v0.0.21
AddImportStatement 添加import语句 例如: AddImportStatement("main.go", "fmt")
func FindStringsBetween ¶ added in v0.0.21
FindStringsBetween 从字符串中查找两个字符串之间的内容
func ReplaceInDir ¶
ReplaceInDir 替换目录下所有文件中的字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.