pangeautil

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalizeJSONMarshall

func CanonicalizeJSONMarshall(v interface{}) []byte

CanonicalizeJSONMarshall is not a true canoni

func CanonicalizeStruct

func CanonicalizeStruct(v interface{}) ([]byte, error)

func Sleep

func Sleep(t time.Duration, ctx context.Context) bool

Sleep t time, but also listen to ctx Done() signal Return true if timeout was reached correctly, false if it was interrupted by ctx signal

Types

type PangeaTimestamp

type PangeaTimestamp time.Time

func (PangeaTimestamp) MarshalJSON

func (ct PangeaTimestamp) MarshalJSON() ([]byte, error)

MarshalJSON writes a quoted string in the custom format

func (*PangeaTimestamp) String

func (ct *PangeaTimestamp) String() string

String returns the time in the custom format

func (*PangeaTimestamp) UnmarshalJSON

func (ct *PangeaTimestamp) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON Parses the json string in the custom format

Jump to

Keyboard shortcuts

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