numerics

package
v1.3.0-testing2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int64 added in v1.2.0

type Int64 int64

Int64 decodes from both string and number json values

func (*Int64) MarshalJSON added in v1.2.0

func (i *Int64) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*Int64) String added in v1.2.0

func (i *Int64) String() string

func (*Int64) UnmarshalJSON added in v1.2.0

func (i *Int64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Integer

type Integer int

this is an int that is read from JSON as either a string or int

func (*Integer) MarshalJSON

func (i *Integer) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*Integer) String

func (i *Integer) String() string

func (*Integer) UnmarshalJSON

func (i *Integer) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON implements json.Unmarshaler interface

Jump to

Keyboard shortcuts

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