From 5ec39d71ede6e0babffdc517d1ab5158aead5656 Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 27 Aug 2014 12:01:13 +0800 Subject: [PATCH] add time type --- g_appcode.go | 1 + 1 file changed, 1 insertion(+) diff --git a/g_appcode.go b/g_appcode.go index b6d252a..f15a7db 100644 --- a/g_appcode.go +++ b/g_appcode.go @@ -93,6 +93,7 @@ var typeMappingMysql = map[string]string{ "date": "time.Time", // time "datetime": "time.Time", "timestamp": "time.Time", + "time": "time.Time", "float": "float32", // float & decimal "double": "float64", "decimal": "float64",