status

package
v0.0.0-...-a480443 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

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

func (*Response) GoString

func (r *Response) GoString() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL