Documentation ¶
Index ¶
- Variables
- func DecodeRequestValue(req *http.Request, result interface{}) error
- func DoRequest(req *http.Request) ([]byte, int, error)
- func LocalAddr() string
- func PrintVersion()
- func Request(method, url string, headers map[string]string, body io.Reader) ([]byte, int, error)
- func SendResponse(w http.ResponseWriter, status int, f string, args ...interface{})
- func SendResponseJSON(w http.ResponseWriter, data interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GitTime git log中记录的提交时间. GitTime = "" // GitMessage git log 中记录的提交信息. GitMessage = "" )
View Source
var (
//AesKey 内部用的简单aes key.
AesKey = "9F4CrTJJVynV6NJL"
)
Functions ¶
func DecodeRequestValue ¶
DecodeRequestValue 解析request中数据.
func SendResponse ¶
func SendResponse(w http.ResponseWriter, status int, f string, args ...interface{})
SendResponse 返回结果,支持json
func SendResponseJSON ¶
func SendResponseJSON(w http.ResponseWriter, data interface{})
SendResponseJSON 返回结果,支持json
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.