Versions in this module Expand all Collapse all v0 v0.0.2 Jul 30, 2023 Changes in this version type Response + Status int + func (msg *Response) String() string v0.0.1 May 31, 2023 Changes in this version + const Err + const Ok + type Code string + type Msg struct + Code string + Data any + Err string + Message string + func (msg *Msg) SetCode(code string) + func (msg *Msg) SetData(data any) + func (msg *Msg) SetError(err error) + func (msg *Msg) SetMessage(m string) + func (msg *Msg) String() string + type Page struct + Count int64 + Rows any + func NewPage(count int64, data any) *Page + type Response struct + Data any + Err string + Msg string + func Fail(e error, message ...string) Response + func Success(data any, message ...string) Response