api

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesFromRequest

func BytesFromRequest(r *http.Request) (b []byte, err error)

BytesFromRequest 读取http.Request.Body的内容到slice中

Types

type QError

type QError struct {
	Code    string
	Message string
}

可以根据Code判断是何种类型错误

func NewError

func NewError(code, message string) *QError

NewError 返回QError指针

func (*QError) Error

func (e *QError) Error() string

Error 继承error接口

Jump to

Keyboard shortcuts

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