json

package
v1.10.6-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: BSD-3-Clause Imports: 9 Imported by: 106

Documentation

Index

Constants

View Source
const (
	// Null is the string representation of a null value
	Null = "null"
)

Variables

This section is empty.

Functions

func NewCodec

func NewCodec() rpc.Codec

NewCodec returns a new json codec that will convert the first character of the method to uppercase

Types

type Float32 added in v0.8.0

type Float32 float32

func (Float32) MarshalJSON added in v0.8.0

func (f Float32) MarshalJSON() ([]byte, error)

func (*Float32) UnmarshalJSON added in v0.8.0

func (f *Float32) UnmarshalJSON(b []byte) error

type Float64 added in v1.4.0

type Float64 float64

func (Float64) MarshalJSON added in v1.4.0

func (f Float64) MarshalJSON() ([]byte, error)

func (*Float64) UnmarshalJSON added in v1.4.0

func (f *Float64) UnmarshalJSON(b []byte) error

type Uint16

type Uint16 uint16

func (Uint16) MarshalJSON

func (u Uint16) MarshalJSON() ([]byte, error)

func (*Uint16) UnmarshalJSON

func (u *Uint16) UnmarshalJSON(b []byte) error

type Uint32

type Uint32 uint32

func (Uint32) MarshalJSON

func (u Uint32) MarshalJSON() ([]byte, error)

func (*Uint32) UnmarshalJSON

func (u *Uint32) UnmarshalJSON(b []byte) error

type Uint64

type Uint64 uint64

func (Uint64) MarshalJSON

func (u Uint64) MarshalJSON() ([]byte, error)

func (*Uint64) UnmarshalJSON

func (u *Uint64) UnmarshalJSON(b []byte) error

type Uint8

type Uint8 uint8

func (Uint8) MarshalJSON

func (u Uint8) MarshalJSON() ([]byte, error)

func (*Uint8) UnmarshalJSON

func (u *Uint8) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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