json

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hex

type Hex struct {
	hex.Hex
}

Hex embeds hex.Hex to implement json.Marshaler and json.Unmarshaler interfaces.

func (Hex) MarshalJSON

func (h Hex) MarshalJSON() ([]byte, error)

MarshalJSON returns JSON representation of Hex.

func (*Hex) UnmarshalJSON

func (h *Hex) UnmarshalJSON(data []byte) error

UnmarshalJSON fills Hex from JSON representation.

Jump to

Keyboard shortcuts

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