Versions in this module Expand all Collapse all v1 v1.0.0 Feb 28, 2019 Changes in this version + func DELETE(pattern string, handler func(*HTTPContext)) + func GET(pattern string, handler func(*HTTPContext)) + func Log() *go_logger.Logger + func POST(pattern string, handler func(*HTTPContext)) + func PUT(pattern string, handler func(*HTTPContext)) + func Run(addr string) + func SQLDelete(tableName, where string) (int64, error) + func SQLInit(driverName, dataSourceName string, maxOpenConns, maxIdleConns int) error + func SQLInsert(tableName string, data []byte) (int64, error) + func SQLQueryByMap(columnName, feilds, tableName, where, order string, offset, count int) (interface{}, error) + func SQLUpdate(tableName, where string, data []byte) (int64, error) + func STATUS(status int, handler func(*HTTPContext)) + type HTTPContext struct + func (ctx *HTTPContext) GetInt(key string, def ...int) int + func (ctx *HTTPContext) GetInt64(key string, def ...int64) int64 + func (ctx *HTTPContext) GetPathParam(key string) string + func (ctx *HTTPContext) GetPostBody() []byte + func (ctx *HTTPContext) GetR() *http.Request + func (ctx *HTTPContext) GetRequest() *http.Request + func (ctx *HTTPContext) GetResponseWriter() http.ResponseWriter + func (ctx *HTTPContext) GetString(key string, def ...string) string + func (ctx *HTTPContext) GetW() http.ResponseWriter + func (ctx *HTTPContext) Redirect(url string, status int) + func (ctx *HTTPContext) WriteByte(content []byte) + func (ctx *HTTPContext) WriteExecute(data interface{}, filenames ...string) error + func (ctx *HTTPContext) WriteHeader(status int) + func (ctx *HTTPContext) WriteJSON(v interface{}) error + func (ctx *HTTPContext) WriteString(content string)