Documentation ¶
Index ¶
- func ConvertStruct(source any, typ *any) (s any, err error)
- func HttpGet[T any](url string, args ...any) (result T, err error)
- func HttpPost[T any](url string, body HttpBody, args ...any) (result T, err error)
- func HttpRequest[T any](url string, args ...any) (result T, err error)
- type HttpBody
- type HttpHeader
- type HttpMethod
- type HttpParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertStruct ¶
ConvertStruct 将source强转为typ类型(返回值为新建typ类型对象)
Types ¶
type HttpMethod ¶
type HttpMethod string
const ( HttpMethodGet HttpMethod = "GET" HttpMethodPost HttpMethod = "POST" )
Click to show internal directories.
Click to hide internal directories.