xtime

package
v0.0.0-...-c242be3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration time.Duration

Duration be used toml unmarshal string time, like 1s, 500ms.

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(text []byte) error

type Time

type Time int64

Time be used to MySql timestamp converting.

func (*Time) Scan

func (jt *Time) Scan(src interface{}) (err error)

func (Time) Time

func (jt Time) Time() time.Time

func (Time) Value

func (jt Time) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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