Discover Packages
git.xiewo.net/go/common
gin
response
package
Version:
v1.0.34
Opens a new window with list of versions in this module.
Published: Jan 25, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func SuccessWithMessage(c *gin .Context , data interface{}, formatOrMess string , vars ...interface{})
type Data struct {
Code int `json:"code"`
Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
Data interface{} `json:"data"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.