Discover Packages
github.com/Yureka-Teknologi-Cipta/yureka
response
package
Version:
v1.4.0
Opens a new window with list of versions in this module.
Published: Oct 1, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Base struct {
Status int `json:"status"`
Message string `json:"message"`
Validation map[string ]string `json:"validation"`
Data interface{} `json:"data"`
}
Error Simple error response
ErrorValidation Error response with validation error
func Success(i interface{}) Base
Success Success response
type List struct {
List []interface{} `json:"list"`
Limit int64 `json:"limit"`
Page int64 `json:"page"`
Total int64 `json:"total"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.