lib

module
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2017 License: GPL-3.0

README

Guides

Instalations

go get -u github.com/u007/lib/...

Dates

import (
	"github.com/u007/lib/tools"
	"fmt"
)

//parsing iso time and iso date to time.Time
thetime, err := tools.TimeFromISOString(val)
if err != nil {
	fmt.Errorf("Unable to parse time: %v %s", val, err.Error())
}


### Date only (will be deprecated when golang 2.0 is out)

import ( "github.com/u007/lib/tools" )

type MyStruct struct { Name string db:"name" json:"name" Created tools.Date db:"created" json:"created" }

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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