Documentation ¶
Index ¶
- func ArrayStringDiff(a []string, b []string, args ...[]string) []string
- func Failed(c *gin.Context, status_code int, message string, data interface{})
- func HttpGet(url string) (string, error)
- func InetAton(ip string) int64
- func InetNtoa(ipnr int64) net.IP
- func IntToString(num int) string
- func MathPlus(a int, b int) int
- func MathReduce(a int, b int) int
- func Success(c *gin.Context, data interface{})
- func Throw403(c *gin.Context, message string)
- func TimeFormat(time time.Time, layout string) string
- func TimeToDateStr(time time.Time) string
- func TrimHtmlTag(src string) string
- func UrlEncode(data map[string]string) string
- type HC
- type Page
- type Pagination
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TrimHtmlTag ¶
Types ¶
type HC ¶
var HttpClient *HC
func MakeHttpClient ¶
func MakeHttpClient() *HC
func (*HC) HttpDelete ¶
type Pagination ¶
type Pagination struct {
// contains filtered or unexported fields
}
func MakePagination ¶
func MakePagination(request *http.Request, total int, size int) *Pagination
Click to show internal directories.
Click to hide internal directories.