Versions in this module Expand all Collapse all v2 v2.0.2 Jun 9, 2023 Changes in this version + func AddQuery(rawUrl string, key string, value string) (string, error) + func Decompress(option Option, resp []byte) ([]byte, error) + func Get(u string, options ...Option) ([]byte, error) + func GetToMap(u string, options ...Option) (map[string]interface{}, error) + func GetToStruct(u string, options ...Option) (T, error) + func PostForm(u string, form url.Values, options ...Option) ([]byte, error) + func PostJSON(u string, jsonByte []byte, options ...Option) ([]byte, error) + func PostToMap(u string, jsonByte []byte, option ...Option) (map[string]interface{}, error) + func PostToStruct(u string, jsonByte []byte, option ...Option) (T, error) + func QueryUrl(rawUrl string, key string) (string, error) + func ResponseFail(c *gin.Context, httpCode int, code int, msg string, data T) + func ResponseFailDefault(c *gin.Context, msg string) + func ResponseSuccess(c *gin.Context, code int, msg string, data T) + func ResponseSuccessDefault(c *gin.Context, data T) + type Option struct + Decompress bool + Header map[string]string Other modules containing this package github.com/aronlt/toolkit