types

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nullable added in v0.2.3

type Nullable interface {
	Nullable()
}

type Timestamp

type Timestamp struct {
	time.Time
}

Timestamp is a time.Time that marshals to unix timestamp.

func (Timestamp) MarshalJSON

func (t Timestamp) MarshalJSON() ([]byte, error)

MarshalJSON will marshal the timestamp into a unix timestamp.

func (*Timestamp) Scan

func (t *Timestamp) Scan(src interface{}) error

Scan will read a value into a new Timestamp.

func (Timestamp) String

func (t Timestamp) String() string

func (*Timestamp) UnmarshalJSON

func (t *Timestamp) UnmarshalJSON(source []byte) error

UnmarshalJSON will read a timestamp from json.

func (Timestamp) Value

func (t Timestamp) Value() (driver.Value, error)

Value gets the value of a Timestamp for writing to the DB.

Jump to

Keyboard shortcuts

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