json

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

type JSON interface {
	Marshal(interface{}) ([]byte, error)
	Unmarshal([]byte, interface{}) error
}

JSON ...

type StandardJSON

type StandardJSON struct {
	MarshalF   func(interface{}) ([]byte, error)
	UnmarshalF func([]byte, interface{}) error
}

StandardJSON ...

func DefaultJSON

func DefaultJSON() *StandardJSON

DefaultJSON ...

func (*StandardJSON) Marshal

func (sj *StandardJSON) Marshal(v interface{}) ([]byte, error)

Marshal ...

func (*StandardJSON) Unmarshal

func (sj *StandardJSON) Unmarshal(data []byte, v interface{}) error

Unmarshal ...

Jump to

Keyboard shortcuts

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