Documentation ¶
Overview ¶
Package goutil 常用工具包
Index ¶
- func DownloadFile(filePath string, rw http.ResponseWriter) error
- func FormatAppVersion(appVersion, GitCommit, BuildDate string) (string, error)
- func MD5(s string) string
- func PanicToError(f func()) (err error)
- func PrintAppVersion(appVersion, GitCommit, BuildDate string)
- func RandNumber(min, max int) int
- func WorkDir() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func DownloadFile(filePath string, rw http.ResponseWriter) error
DownloadFile 文件下载
func FormatAppVersion ¶
FormatAppVersion 格式化应用版本信息
func PrintAppVersion ¶
func PrintAppVersion(appVersion, GitCommit, BuildDate string)
PrintAppVersion 打印应用版本
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.