Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnixNanoTime ¶
UnixNanoTime is a custom time type that marshals/unmarshals to/from a string containing the Unix time in nanoseconds.
func (UnixNanoTime) MarshalJSON ¶
func (t UnixNanoTime) MarshalJSON() ([]byte, error)
MarshalJSON converts a UnixNanoTime into a JSON string in RFC3339 format.
func (UnixNanoTime) String ¶
func (t UnixNanoTime) String() string
String returns the time in a human-readable format.
func (*UnixNanoTime) UnmarshalJSON ¶
func (t *UnixNanoTime) UnmarshalJSON(data []byte) error
UnmarshalJSON converts a JSON string with Unix time in nanoseconds into a UnixNanoTime.
Click to show internal directories.
Click to hide internal directories.