Help us shape the future of Go! Take the 2026 Go Developer Survey

dbtime

package module
v0.0.0-...-10cd2ac Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: MIT Imports: 2 Imported by: 0

README

dbTime

Converts date formats to use with postgresql and pREST

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Time

type Time struct {
	time.Time
}

Time replace MarshalJSON and UnmarshalJSON functions to allow compatibility with the Postgresql date format.

func (Time) MarshalJSON

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

MarshalJSON compatibility with the Postgresql date format

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON compatibility with the Postgresql date format

Jump to

Keyboard shortcuts

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