swag: github.com/swaggo/swag/example/celler/httputil Index | Files

package httputil

import "github.com/swaggo/swag/example/celler/httputil"

Index

Package Files

error.go

func NewError Uses

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

NewError example

type HTTPError Uses

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

HTTPError example

Package httputil imports 1 packages (graph) and is imported by 2 packages. Updated 2019-04-28. Refresh now. Tools for package owners.