Documentation
¶
Index ¶
- func First[T interface{}](defaultArg T, args []T) T
- func GetBoolValue(m map[string]interface{}, key string) (bool, bool)
- func GetFloatValue(m map[string]interface{}, key string) (float64, bool)
- func GetIntValue(m map[string]interface{}, key string) (int, bool)
- func GetInterfaceSlice(m map[string]interface{}, key string) ([]interface{}, bool)
- func GetStringSlice(m map[string]interface{}, key string) ([]string, bool)
- func GetStringValue(m map[string]interface{}, key string) (string, bool)
- func HttpDelete(url string, params interface{}, headers ...map[string]string) ([]byte, error)
- func HttpDeleteWithToken(url string, params interface{}, token string, headers ...map[string]string) ([]byte, error)
- func HttpGet(url string, params map[string]string, headers ...map[string]string) ([]byte, error)
- func HttpGetWithToken(url string, params map[string]string, token string, ...) ([]byte, error)
- func HttpPost[T interface{} | map[string]interface{}](url string, params interface{}, headers ...map[string]string) (T, error)
- func HttpPostByte(url string, params interface{}, headers ...map[string]string) ([]byte, error)
- func HttpPostByteWithToken(url string, params interface{}, token string, headers ...map[string]string) ([]byte, error)
- func HttpPostWithToken[T interface{} | map[string]interface{}](url string, params interface{}, token string, headers ...map[string]string) (T, error)
- func HttpPut(url string, params interface{}, headers ...map[string]string) ([]byte, error)
- func HttpPutWithToken(url string, params interface{}, token string, headers ...map[string]string) ([]byte, error)
- func JsonParse[T interface{}](data []byte) (T, error)
- func JsonString(data interface{}) string
- func Max[T float32 | float64 | int | int32 | int64](a, b T) T
- func Min[T float32 | float64 | int | int32 | int64](a, b T) T
- func RandString(n int) string
- func UUID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInterfaceSlice ¶
func HttpDelete ¶
func HttpDeleteWithToken ¶
func HttpGetWithToken ¶
func HttpPostByte ¶
func HttpPostByteWithToken ¶
func HttpPostWithToken ¶
func HttpPutWithToken ¶
func RandString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.