Versions in this module Expand all Collapse all v1 v1.6.0 May 20, 2019 Changes in this version + var File = myfile + var Go = mygo + var Net = mynet + var OS = myos + var Rand = myrand + var Str = str + var Zip = myzip + func Recover() + func RetGzJSON(w http.ResponseWriter, r *http.Request, res map[string]interface{}) + func RetGzResult(w http.ResponseWriter, r *http.Request, res *Result) + func RetJSON(w http.ResponseWriter, r *http.Request, res map[string]interface{}) + func RetResult(w http.ResponseWriter, r *http.Request, res *Result) + type Result struct + Code int + Data interface{} + Msg string + Succ bool + func NewResult() *Result + type WSChannel struct + Conn *websocket.Conn + Request *http.Request + Sid string + Time time.Time + func (c *WSChannel) Close() + func (c *WSChannel) ReadJSON(v interface{}) (ret error) + func (c *WSChannel) Refresh() + func (c *WSChannel) WriteJSON(v interface{}) (ret error) + type ZipFile struct + func (z *ZipFile) AddDirectory(path, dirName string) error + func (z *ZipFile) AddDirectoryN(path string, names ...string) error + func (z *ZipFile) AddEntry(path, name string) error + func (z *ZipFile) AddEntryN(path string, names ...string) error + func (z *ZipFile) Close() error