Documentation
¶
Overview ¶
* 一个简单的go框架,复制的是github开源,并非自己写的 20230831 *
Index ¶
- Variables
- func GetJSON(addr string, out interface{}) error
- func GetJSONStrict(addr string, out interface{}) error
- func HandleGET(path string, handler interface{}, object ...interface{})
- func HandlePOST(path string, handler interface{}, object ...interface{})
- func RunServer(addr string, stop chan struct{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IndentJSON string Log = log.Println DontCheckRequestMethod bool )
Functions ¶
func GetJSONStrict ¶
func HandlePOST ¶
func HandlePOST(path string, handler interface{}, object ...interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.