Back to godoc.org

Package httputil

v1.6.8
Latest Go to latest

The latest major version is .

Published: Aug 12, 2020 | License: MIT | Module: github.com/Turing-Chu/swag

Index

func NewError

func NewError(ctx *gin.Context, status int, err error)

NewError example

type HTTPError

type HTTPError struct {
	Code    int    `json:"code" example:"400"`
	Message string `json:"message" example:"status bad request"`
}

HTTPError example

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier