encoder

package
v0.0.0-...-658fa7e Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespEncoder

func RespEncoder(w nethttp.ResponseWriter, r *nethttp.Request, i interface{}) error

Types

type Response

type Response struct {
	Code    int         `json:"code"`
	Reason  string      `json:"reason"`
	Message interface{} `json:"message"`
}

返回的结构

Jump to

Keyboard shortcuts

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