types

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Additional types which are used in requests to the API but are not built-ins and thus not implemented by the json package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringOrZero

type StringOrZero string

Workaround for Omnia's very handy feature of using an integer zero when no string data is present.

func (StringOrZero) MarshallJSON

func (s StringOrZero) MarshallJSON() ([]byte, error)

func (*StringOrZero) UnmarshalJSON

func (s *StringOrZero) UnmarshalJSON(data []byte) (err error)

type UnixTS

type UnixTS time.Time

Date and time represented as a UNIX-timestamp.

func (UnixTS) MarshallJSON

func (t UnixTS) MarshallJSON() ([]byte, error)

func (*UnixTS) UnmarshalJSON

func (t *UnixTS) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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