primative

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 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 BCDate

type BCDate struct {
	time.Time
}

BCDate is a struct representing a BigCommerce date resource

func (*BCDate) UnmarshalJSON

func (bcD *BCDate) UnmarshalJSON(input []byte) error

UnmarshalJSON will unmarshall date into time object

type Resource added in v0.5.0

type Resource struct {
	URL      string
	Resource string
}

Resource is general struct for resource url and type found in many returned objects from bigcommerce

func (Resource) EagerGet added in v0.5.0

func (r Resource) EagerGet(s connect.Client, i interface{}) error

EagerGet - attempts to unmarshal a resource url into an interface, preferably one intended to unmarshal the json body of that url.

Jump to

Keyboard shortcuts

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