Versions in this module Expand all Collapse all v1 v1.12.2 Dec 1, 2015 v1.12.1 Nov 10, 2015 v1.12.0 Nov 4, 2015 Changes in this version + const UserAgent + const Version + var WithDataWrapper = MarshalStyle(true) + var WithoutDataWrapper = MarshalStyle(false) + func Bool(v bool) *bool + func CheckMediaResponse(res *http.Response) error + func CheckResponse(res *http.Response) error + func CloseBody(res *http.Response) + func CombineFields(s []Field) string + func ConditionallyIncludeMedia(media io.Reader, bodyp *io.Reader, ctypep *string) (cancel func(), ok bool) + func ConvertVariant(v map[string]interface{}, dst interface{}) bool + func DetectMediaType(media io.ReaderAt) string + func Expand(u *url.URL, expansions map[string]string) + func Float64(v float64) *float64 + func Int32(v int32) *int32 + func Int64(v int64) *int64 + func IsNotModified(err error) bool + func ResolveRelative(basestr, relstr string) string + func SetOpaque(u *url.URL) + func String(v string) *string + func Uint32(v uint32) *uint32 + func Uint64(v uint64) *uint64 + func VariantType(t map[string]interface{}) string + type ContentTyper interface + ContentType func() string + type Error struct + Body string + Code int + Errors []ErrorItem + Header http.Header + Message string + func (e *Error) Error() string + type ErrorItem struct + Message string + Reason string + type Field string + type Float64s []float64 + func (q *Float64s) UnmarshalJSON(raw []byte) error + func (s Float64s) MarshalJSON() ([]byte, error) + type Int32s []int32 + func (q *Int32s) UnmarshalJSON(raw []byte) error + func (s Int32s) MarshalJSON() ([]byte, error) + type Int64s []int64 + func (q *Int64s) UnmarshalJSON(raw []byte) error + func (s Int64s) MarshalJSON() ([]byte, error) + type Lengther interface + Len func() int + type MarshalStyle bool + func (wrap MarshalStyle) JSONReader(v interface{}) (io.Reader, error) + type ProgressUpdater func(current, total int64) + type ResumableUpload struct + Callback ProgressUpdater + Client *http.Client + ContentLength int64 + Media io.ReaderAt + MediaType string + URI string + UserAgent string + func (rx *ResumableUpload) Progress() int64 + func (rx *ResumableUpload) Upload(ctx context.Context) (*http.Response, error) + type ServerResponse struct + HTTPStatusCode int + Header http.Header + type SizeReaderAt interface + Size func() int64 + type Uint32s []uint32 + func (q *Uint32s) UnmarshalJSON(raw []byte) error + func (s Uint32s) MarshalJSON() ([]byte, error) + type Uint64s []uint64 + func (q *Uint64s) UnmarshalJSON(raw []byte) error + func (s Uint64s) MarshalJSON() ([]byte, error)