
The highest tagged major version is
v4.
package
Version:
v3.0.2
Opens a new window with list of versions in this module.
Published: Jan 26, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func UrlQueryBindPayload(urlQuery url.Values, payload interface{}) error
UrlQueryBindPayload binds url query params to the payload
type JSON struct {
Code string `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
Errors []string `json:"errors,omitempty"`
}
func JSONSuccess(httpStatus int, data interface{}) (int, *JSON)
JSONSuccess builds JSON success object
Source Files
¶
Click to show internal directories.
Click to hide internal directories.