frum

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 4 Imported by: 0

README

frum

go get -u github.com/codemodus/frum

Package frum provides functions for converting types. In order to minimize error handling, "tripping" versions of each conversion function are provided.

NOT READY.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NullTimeToTimestamp

func NullTimeToTimestamp(nt mysql.NullTime) (*timestamp.Timestamp, error)

NullTimeToTimestamp ...

func TimeToTimestamp

func TimeToTimestamp(t time.Time) (*timestamp.Timestamp, error)

TimeToTimestamp ...

func TimestampToNullTime

func TimestampToNullTime(ts *timestamp.Timestamp) (mysql.NullTime, error)

TimestampToNullTime ...

func TimestampToTime

func TimestampToTime(ts *timestamp.Timestamp) (time.Time, error)

TimestampToTime ...

func TripNullTimeToTimestamp

func TripNullTimeToTimestamp(nt mysql.NullTime, err error) (*timestamp.Timestamp, error)

TripNullTimeToTimestamp ...

func TripTimeToTimestamp

func TripTimeToTimestamp(t time.Time, err error) (*timestamp.Timestamp, error)

TripTimeToTimestamp ...

func TripTimestampToNullTime

func TripTimestampToNullTime(ts *timestamp.Timestamp, err error) (mysql.NullTime, error)

TripTimestampToNullTime ...

func TripTimestampToTime

func TripTimestampToTime(ts *timestamp.Timestamp, err error) (time.Time, error)

TripTimestampToTime ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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