Versions in this module Expand all Collapse all v0 v0.0.3 Jun 25, 2022 v0.0.2 Jun 25, 2022 v0.0.1 May 2, 2022 Changes in this version + const BadGateway + const BadRequest + const Forbidden + const NotFound + const OK + const PermanentRequired + const ServerError + const UnAuthorized + func Error(status int, str string) string + func GetParam(r *http.Request, key string) string + func GetParamInt(r *http.Request, key string) int + func ListResult(list any, total int) string + func ParseBody(r *http.Request, v any) any + func PathVariable(path, key string, r *http.Request) string + func Result(status int, message string) string + func Success(data any) string + type ListRes struct + List any + Message string + Status int + func (l ListRes) String() string + type Res struct + Data any + Message string + Status int + func (r Res) String() string