wgnTime

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnixTime

type UnixTime struct {
	time.Time
}

UnixTime is our magic type

func (UnixTime) MarshalJSON

func (uTime UnixTime) MarshalJSON() ([]byte, error)

MarshalJSON turns our time.Time back into an int

func (*UnixTime) UnmarshalJSON

func (uTime *UnixTime) UnmarshalJSON(data []byte) error

UnmarshalJSON is the method that satisfies the Unmarshaller interface

Jump to

Keyboard shortcuts

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