response

package
v0.0.0-...-3beaeaf Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Err

type Err struct {
	ErrorCode int    `json:"error_code,omitempty"` // application-specific error code
	ErrorMsg  string `json:"error"`                // user-facing error message
	// contains filtered or unexported fields
}

func ErrBadRequest

func ErrBadRequest(err error) *Err

func ErrInternalServerError

func ErrInternalServerError(err error) *Err

func (*Err) Render

func (e *Err) Render(w http.ResponseWriter, r *http.Request) error

type SumPopulationByStateResult

type SumPopulationByStateResult struct {
	TotalPopulation uint `json:"total_population"`
}

func NewSumPopulationByStateResult

func NewSumPopulationByStateResult(result uint) *SumPopulationByStateResult

func (*SumPopulationByStateResult) Render

Jump to

Keyboard shortcuts

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