Skip to content

efimovalex/odt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Other Date Types

Build Status Go Report Card codecov GoDoc

Golang Other Date Types

Golang Library that translates between DATE and TIME SQL types and JSON encoding.

Features:

- automatically converts json to mysql scannable struct for DATE and TIME types

- can change the format read from the json

Example:

Look in the example folder

Change formats:

    odt.SetDateFormat("01/02/2006")
    odt.SetTimeFormat("22-22-22")