Documentation ¶
Index ¶
Constants ¶
View Source
const (
ContentType_JSON = `application/json; charset=utf-8`
)
Variables ¶
View Source
var Simple = NewSimple()
View Source
var Std = NewStandard()
Functions ¶
func SetDefaultResp ¶
func SetDefaultResp(r Resp)
Types ¶
type Resp ¶
type Resp interface { New(code int, msg string, data any, other any) To NewOK(list ...any) To NewErr(code int, msg string) To }
func NewStandard ¶
func NewStandard() Resp
type StdRespData ¶
Click to show internal directories.
Click to hide internal directories.