Versions in this module Expand all Collapse all v0 v0.0.1 Dec 19, 2023 Changes in this version + const DEFAULT_LIMIT + const DEFAULT_OFFSET + func NewCors(handler http.Handler) http.Handler + func NewLogger(handler http.Handler) http.Handler + func ParseLimit(str string) (limit int, err error) + func ParseOffset(str string) (limit int, err error) + func ParseSort(str string, fields []string) (field string, asc bool, err error) + type CorsMiddleware struct + func (this *CorsMiddleware) ServeHTTP(res http.ResponseWriter, req *http.Request) + type LoggerMiddleWare struct + func (this *LoggerMiddleWare) ServeHTTP(w http.ResponseWriter, r *http.Request)