Documentation ¶
Index ¶
- Constants
- Variables
- func CheckErr(err error)
- func CheckErrPrint(err error)
- func CopyFile(srcName, dstName string) (written int64, err error)
- func DownFile(url string) []byte
- func GetByteMd5(b []byte) string
- func GetFileMd5(filename string) (string, error)
- func GetNowTimeStr() string
- func GetStringMd5(s string) string
- func GetSystemType() string
- func JsonDecoder(jsStr io.Reader) map[string]string
- func PathExists(path string, mkdir bool) (bool, error)
- func RandChar(size int) string
- func WriteLog(fileurl, str string)
- func WriteLogV2(str string)
- type Config
- type FileListStruct
- type FilesList
- type Logs
Constants ¶
View Source
const ( SqlField = "SqlField" //自创建数据库字段名称标记 SqlType = "SqlType" //自创建数据库字段类型标记 )
Variables ¶
View Source
var LogUrl = ""
写入日志 由logrus代替,后期删除
Functions ¶
func GetByteMd5 ¶
func GetFileMd5 ¶
func GetStringMd5 ¶
func WriteLogV2 ¶
func WriteLogV2(str string)
Types ¶
type Config ¶
读取配置文件 ` 读取配置文件代码来源 https://studygolang.com/articles/4300 作者:u014798316 `
func (*Config) InitConfig ¶
type FileListStruct ¶
type FilesList ¶
type FilesList struct {
FileList []FileListStruct
}
获取文件列表
func (*FilesList) GetFileList ¶
Click to show internal directories.
Click to hide internal directories.