Versions in this module Expand all Collapse all v0 v0.0.2 Jun 3, 2023 Changes in this version + func Close(f io.Closer) v0.0.1 Jun 2, 2023 Changes in this version + const RandomAll + const RandomLowercase + const RandomMajuscule + const RandomNumber + const RandomSymbol + const TimeFormatString + func FormatTime(i int64) string + func GetCurrentDirectory() string + func IsAndroid() bool + func IsDarwin() bool + func IsLinux() bool + func IsNumber(s string) bool + func IsWindows() bool + func JSONMarshalByte(v interface{}) []byte + func JSONMarshalString(v interface{}) string + func Md5(s string) string + func Md5File(filePath string) (string, error) + func PathExists(path string) (bool, error) + func RandomStr(length uint, contain type_) string + func RemoveSameFromStringSlice(slice []string) []string + func ReverseByte(s []byte) []byte + type Client struct + func NewClient() *Client + func (c *Client) Get(url string) ([]byte, error) + func (c *Client) Post(url string, requestBody string) ([]byte, error) + func (c *Client) SetCert(crt, key, ca []byte) (err error) + func (c *Client) SetHeader(key string, value string) + func (c *Client) SetTimeout(duration time.Duration) + type PaginationData struct + FirstPage int64 + LastPage int64 + NextPage int64 + Page int64 + PageNums int64 + PageSize int64 + Pages []int64 + PreviousPage int64 + Total int64 + TotalPage int64 + func Pagination(total, page, pageSize int64, pageNum int64) (pg *PaginationData)