json

package
v0.0.0-...-2b54507 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 4 Imported by: 34

Documentation

Index

Constants

View Source
const AppTimeFormat = "2006-01-02 15:04:05"
View Source
const BlankString = ""

Variables

This section is empty.

Functions

func FromJson

func FromJson(jsonStr string, obj interface{}) error

func Marshal

func Marshal(obj interface{}) ([]byte, error)

func ToJson

func ToJson(obj interface{}) (string, error)

func ToJsonBytesIgnoreError

func ToJsonBytesIgnoreError(obj interface{}) []byte

func ToJsonIgnoreError

func ToJsonIgnoreError(obj interface{}) string

func Unmarshal

func Unmarshal(bs []byte, obj interface{}) error

Types

type TimeDecoder

type TimeDecoder struct {
}

func (*TimeDecoder) Decode

func (td *TimeDecoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)

type TimeEncoder

type TimeEncoder struct {
	// contains filtered or unexported fields
}

func (*TimeEncoder) Encode

func (codec *TimeEncoder) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (*TimeEncoder) IsEmpty

func (codec *TimeEncoder) IsEmpty(ptr unsafe.Pointer) bool

Jump to

Keyboard shortcuts

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