json

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MPL-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmptyJsonArray

func IsEmptyJsonArray(data []byte) bool

IsEmptyJsonArray 是否是空json array

func IsEmptyJsonObject

func IsEmptyJsonObject(data []byte) bool

IsEmptyJsonObject 是否是空json object

func JsonArray

func JsonArray(args ...any) []byte

JsonArray 将slice转换成[]byte数据,如果slice为nil或空则返回空json array bytes

func JsonObject

func JsonObject(args ...any) []byte

JsonObject 将object转换成[]byte数据,如果object为nil或空则返回空json object bytes

Types

type Utils

type Utils interface {
	IsEmptyJsonArray(data []byte) bool
	IsEmptyJsonObject(data []byte) bool
	JsonArray(args ...any) []byte
	JsonObject(args ...any) []byte
}

Jump to

Keyboard shortcuts

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