types

package
v0.0.0-...-7cd2dfd Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date struct {
	time.Time
}

Date allows for unmarshalling the date objects returned by Exact.

func (*Date) IsSet

func (d *Date) IsSet() bool

IsSet returns a boolean if the Date is actually set.

func (*Date) MarshalJSON

func (d *Date) MarshalJSON() ([]byte, error)

MarshalJSON marshals the date to a format expected by the Exact Online API.

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the date format returned from the Exact Online API.

type GUID

type GUID struct {
	uuid.UUID
}

GUID allows for unmarshalling the urls returned by Exact.

func NewGUID

func NewGUID() GUID

NewGUID generates a new GUID.

func (*GUID) IsSet

func (g *GUID) IsSet() bool

IsSet checks if the GUID/uuid actually exists

func (*GUID) MarshalJSON

func (g *GUID) MarshalJSON() ([]byte, error)

MarshalJSON marshals the url to a format expected by the Exact Online API.

func (*GUID) String

func (g *GUID) String() string

func (*GUID) UnmarshalJSON

func (g *GUID) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the guid to uuid.UUID returned from the Exact Online API.

type URL

type URL struct {
	*url.URL
}

URL allows for unmarshalling the urls returned by Exact.

func (*URL) MarshalJSON

func (u *URL) MarshalJSON() ([]byte, error)

MarshalJSON marshals the url to a format expected by the Exact Online API.

func (*URL) UnmarshalJSON

func (u *URL) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the url to url.URL returned from the Exact Online API.

Jump to

Keyboard shortcuts

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