package
0.0.0-20230204233850-0a7e60f91997
Repository: https://github.com/hunyxv/utils.git
Documentation: pkg.go.dev
# Functions
AddQueryValuesIntoURL append url.Values into url string.
Get get something by form values.
IsReplyErr check if err is reply error.
PostForm post some form values.
PostJSON post some json.
WithHeader setup header, this func can call multi times.
WithLogger use logger to log something.
WithRetryDelay delay how long before retry.
WithRetryTimes retry how many times.
WithTLSClientConfig add RootCAs.
WithTTL how long this rpc will cost.
# Constants
DefaultRetryDelay delay some time before retry.
DefaultRetryTimes retry how many times.
DefaultTTL the entire time cost, contains N times retry.
# Interfaces
ReplyErr if resp.StatusCode != http.StatusOK, this error will wrap resp data.
# Type aliases
Option custom setup config.