output

package
v0.2.25 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(ctx *gin.Context, filePath string)

func Json

func Json(ctx *gin.Context, enum enum.ErrorNum, data interface{})

func JsonNoTag

func JsonNoTag(ctx *gin.Context, enum enum.ErrorNum, data interface{})

func WriteJSON

func WriteJSON(w http.ResponseWriter, obj interface{}) error

func Yaml added in v0.0.6

func Yaml(ctx *gin.Context, data interface{})

Types

type Result

type Result struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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