response

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	// ステータス
	// @Example "error"
	Status string `example:"error" json:"status"`

	// エラーメッセージ
	// @Example "プランが見つかりません"
	Error string `example:"プランが見つかりません" json:"error"`
}

ErrorResponse エラーレスポンス @Description エラー情報のレスポンス.

func NewErrorResponse

func NewErrorResponse(err error) ErrorResponse

NewErrorResponse は新しいErrorResponseインスタンスを生成します.

Jump to

Keyboard shortcuts

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