result

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result interface {
	// JSON outputs json result
	JSON(w http.ResponseWriter, r *http.Request)
}

Result the result definition for API

func Err

func Err(err error, data ...any) Result

func New

func New(code codes.Code, data ...any) Result

func OK

func OK(data ...any) Result

Jump to

Keyboard shortcuts

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