serialization

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpochTime

type EpochTime time.Time

EpochTime is a type used for unmarshaling timestamps represented in epoch time. Its underlying type is time.Time.

func (EpochTime) Equal

func (e EpochTime) Equal(u EpochTime) bool

Equal provides a comparator for the EpochTime type.

func (EpochTime) MarshalJSON

func (e EpochTime) MarshalJSON() ([]byte, error)

MarshalJSON is responsible for marshaling the EpochTime type.

func (*EpochTime) UnmarshalJSON

func (e *EpochTime) UnmarshalJSON(s []byte) (err error)

UnmarshalJSON is responsible for unmarshaling the EpochTime type.

Jump to

Keyboard shortcuts

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