Discover Packages
github.com/leeprovoost/go-rest-api-template
pkg
status
package
Version:
v0.0.0-...-a480443
Opens a new window with list of versions in this module.
Published: Jan 2, 2021
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
Documentation
¶
type Response struct {
Status string `json:"status"`
Message string `json:"message"`
}
Response is a custom response object we pass around the system and send back to the customer
404: Not found
500: Internal Server Error
GoString implements the GoStringer interface so we can display the full struct during debugging
usage: fmt.Printf("%#v", i)
ensure that i is a pointer, so might need to do &i in some cases
Source Files
¶
Click to show internal directories.
Click to hide internal directories.