jsontoolkit

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IFaceCast2Int64

func IFaceCast2Int64(x interface{}) (int64, error)

func IFaceCast2String

func IFaceCast2String(x interface{}) (string, error)

func JSONError

func JSONError(ctx *gin.Context, code int, message string)

func JSONErrorf

func JSONErrorf(ctx *gin.Context, code int, format string, args ...interface{})

func JSONSuccess

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

Types

type JSONResp

type JSONResp struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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