Documentation ¶
Index ¶
- func Base64(fileName string) string
- func ParseJson(req string) (map[string]interface{}, error)
- type NormalReq
- func (request *NormalReq) AddFileParma(key, fileName string)
- func (request *NormalReq) AddHeadParma(key, value string)
- func (request *NormalReq) AddTextParam(key, value string)
- func (request *NormalReq) Get() (string, error)
- func (request *NormalReq) Post() (string, error)
- func (request *NormalReq) SetTimeOut(timeOut time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NormalReq ¶
type NormalReq struct {
// contains filtered or unexported fields
}
func ShowAPIRequest ¶
ShowAPIRequest 用于请求官网
func (*NormalReq) AddFileParma ¶
func (*NormalReq) AddHeadParma ¶
func (*NormalReq) AddTextParam ¶
func (*NormalReq) SetTimeOut ¶
Click to show internal directories.
Click to hide internal directories.