bresult

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteResponse

func WriteResponse(ctx context.Context, getCode bcode.BCode, msg string, res interface{})

WriteResponse

写入响应

用于写入响应信息, 用于返回错误码信息.

参数

  • ctx 请求的上下文(*context.Context)
  • getCode 错误码(BCode)
  • msg 错误信息(string)
  • res 数据(interface)

Types

This section is empty.

Jump to

Keyboard shortcuts

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