__ ________ __ __
____ _____ / /_____ ______________ _/ __/ __/___ / /___/ /
/ __ `/ __ \/ __/ __ \/ ___/ ___/ __ `/ /_/ /_/ __ \/ / __ /
/ /_/ / /_/ / /_/ /_/ (__ ) /__/ /_/ / __/ __/ /_/ / / /_/ /
\__, /\____/\__/\____/____/\___/\__,_/_/ /_/ \____/_/\__,_/
/____/
golang, 集成了一些常用的功能函数。
A golang, some commonly used functions are collected.
go get github.com/mysticbinary/gotoscaffold
- gtserr
- ExitOnError
- gtsfile
- WriteStructToFile
- ReadFileToStruct
- TextLinesToSlice
- CreateFile
- CreateDir
- IsDirExist
- WriteAtEnd
- RemoveFile
- RemoveAll
- gtslog
- LogINFO
- LogWARNING
- LogERROR
- gtsmath
- SumSlice
- AverageSlice
- gtsmonitor
- MonitorWebsiteUptime
- gtsordr
- FindSliceMax
- FindMaxAndSecond
- RemoveIntRepeat
- RemoveRepByLoop
- RemoveRepByMap
- RemoveStrRepeat
- SmallToLargeOrder
- gtsrequest
- SendEmail
- gtstime
- GetNow
- GetNowDay
- GetXMonthsAgo
- StrtodayToUnixNanoTime
- Strtoday24ToUnixNanoTime
这个项目正在建设中,可能会含有错误,请谨慎使用。
This project is under construction and may contain bugs.