package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Mar 22, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 18
Opens a new window with list of known importers.
Documentation
¶
type Resp struct {
e.Error
Data interface{} `json:"data"`
}
Resp unified encapsulation of business return values.
func Format(data interface{}, err error) (r *Resp)
Format formatting return value
func (r *Resp) Context(c context, code ...int)
Context write http status
Source Files
¶
Click to show internal directories.
Click to hide internal directories.