result

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailResult

type DetailResult struct {
	Status  int    `json:"-"`
	Message string `json:"message"`
	Detail  any    `json:"detail"`
}

func ErrorDetail

func ErrorDetail(m string, d any, c ...int) *DetailResult

func SuccessDetail

func SuccessDetail(m string, d any, c ...int) *DetailResult

func (*DetailResult) Error

func (r *DetailResult) Error() string

type Result

type Result struct {
	Status  int    `json:"-"`
	Message string `json:"message"`
}

func Error

func Error(m string, c ...int) *Result

func Success

func Success(m string, c ...int) *Result

func (*Result) Error

func (r *Result) Error() string

Jump to

Keyboard shortcuts

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