Documentation
¶
Index ¶
- func AbsUrl(base, uri string) string
- func Base64Dec(origin string) ([]byte, error)
- func Base64Enc(originBytes []byte) string
- func Cp(src, dst string) error
- func Decrypt(ciphertext string, key, iv []byte) (string, error)
- func Encrypt(plaintext, key, iv []byte) (string, error)
- func GenQueryParams(p any) string
- func GetHttpClient() *resty.Client
- func GetPtr[T any](t T) *T
- func Jp2Utf8(originBytes []byte) (string, error)
- func Keys[K comparable, V any](m map[K]V) []K
- func Move(src, dst string) error
- func NewSet[T comparable](items ...T) *set[T]
- func PropertiesCopy(target, source any) error
- func Req(method, url string, body any, options ...Option) (*resty.Response, error)
- func ReqWithProxy(method, url string, body any, proxy string, options ...Option) (*resty.Response, error)
- func SaveFileWithMd5Name(data io.Reader, dir string, ext string) (string, error)
- func Socks5Proxy(p string, username, password string) (proxy.Dialer, error)
- func Str2Time(str string) (t time.Time)
- func TrimBlankChar(str string) string
- func UrlDec(origin string) (string, error)
- func UrlEnc(origin string) string
- func Utf82Jp(originBytes []byte) (string, error)
- type Option
- func SetCookiesWithOption(cookies ...*http.Cookie) Option
- func SetFromWithOption(data map[string]string) Option
- func SetHeadersWithOption(headers map[string]string) Option
- func SetMultiFileWithOption(params map[string]string, files map[string][]string) Option
- func SetMultipartFormWithOption(params map[string]string) Option
- func SetMultipartWithOption(fields ...*resty.MultipartField) Option
- func SetQueryParamsWithOption(params map[string]string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenQueryParams ¶
func GetHttpClient ¶
func Keys ¶
func Keys[K comparable, V any](m map[K]V) []K
func NewSet ¶
func NewSet[T comparable](items ...T) *set[T]
func PropertiesCopy ¶
func ReqWithProxy ¶
func SaveFileWithMd5Name ¶
func TrimBlankChar ¶
Types ¶
type Option ¶
func SetCookiesWithOption ¶
func SetFromWithOption ¶
func SetHeadersWithOption ¶
func SetMultiFileWithOption ¶
func SetMultipartWithOption ¶
func SetMultipartWithOption(fields ...*resty.MultipartField) Option
Click to show internal directories.
Click to hide internal directories.