package
Version:
v0.0.32
Opens a new window with list of versions in this module.
Published: Oct 17, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
IsEmptyJsonArray 是否是空json array
func IsEmptyJsonObject(data []byte) bool
IsEmptyJsonObject 是否是空json object
JsonArray 将slice转换成[]byte数据,如果slice为nil或空则返回空json array bytes
func JsonObject(args ...any) []byte
JsonObject 将object转换成[]byte数据,如果object为nil或空则返回空json object bytes
type Utils interface {
IsEmptyJsonArray(data []byte) bool
IsEmptyJsonObject(data []byte) bool
JsonArray(args ...any) []byte
JsonObject(args ...any) []byte
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.