types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool bool

Bool is used to convert int 1/0 to bool true/false

func (*Bool) UnmarshalJSON

func (b *Bool) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON converts int to bool from JSON

func (*Bool) UnmarshalXML

func (b *Bool) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)

UnmarshalXML converts int to bool from XML

type DateTime

type DateTime time.Time

DateTime is used to convert string represented time to time.Time format

func (*DateTime) MarshalJSON

func (t *DateTime) MarshalJSON() ([]byte, error)

MarshalJSON converts time to string representation

func (*DateTime) MarshalXML

func (t *DateTime) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML converts time to string representation

func (*DateTime) UnmarshalJSON

func (t *DateTime) UnmarshalJSON(b []byte) error

UnmarshalJSON converts string represented time to time.Time from JSON

func (*DateTime) UnmarshalXML

func (t *DateTime) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML converts string represented time to time.Time from XML

Jump to

Keyboard shortcuts

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