Documentation
¶
Index ¶
- Constants
- func AllocateDisk(n int) string
- func ConvertPercent(src float64) string
- func FormatSecondToDuration(second int64) string
- func GetFileMD5(path string) (string, error)
- func GetFileSHA1(path string) (string, error)
- func GetLocalPublicIP() (string, error)
- func Hang()
- func KeepFloatNum(src float64, num int) (float64, error)
- func MarshalBytesMatrix(str string) ([][]byte, error)
- func MarshalIntSlice() ([]int, error)
- func Max(data ...int) int
- func NewFileLogrus(path string) *logrus.Logger
- func Pow(x, y int) int
- func ReadFileInLine(path string) ([]string, error)
- func SetHashBlock(size int64)
- func TimeNow() string
- func UseDefaultLogrus()
- func UseDefaultLogs()
- func WriteFileInLine(path string, data []string) error
Constants ¶
View Source
const ( TIME_SECOND = 1 TIME_MINUTE = 60 * TIME_SECOND TIME_HOUR = 60 * TIME_MINUTE )
Variables ¶
This section is empty.
Functions ¶
func AllocateDisk ¶
func ConvertPercent ¶
func FormatSecondToDuration ¶
func GetFileMD5 ¶
func GetFileSHA1 ¶
func GetLocalPublicIP ¶
func MarshalBytesMatrix ¶
用于处理岛屿类题目中的测试case转换为可用结构
func NewFileLogrus ¶
func ReadFileInLine ¶
func SetHashBlock ¶
func SetHashBlock(size int64)
func UseDefaultLogrus ¶
func UseDefaultLogrus()
func UseDefaultLogs ¶
func UseDefaultLogs()
func WriteFileInLine ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.