func (t *Time) Scan(v interface{}) error {
	value, ok := v.(time.Time)
	if ok {
		*t = Time{Time: value}
		return nil
	}
	return fmt.Errorf("can not convert %v to Time", v)
}
Scan support scan
package bast
import (
	"database/sql/driver"
	"errors"
	"fmt"
	"strings"
	"time"
)
var loc *time.Location
func init() {
	loc, _ = time.LoadLocation("Local")
}
type Time struct {
	time.Time
}
func (t Time) MarshalJSON() ([]byte, error) {
	stamp := "\"\""
	if !t.IsZero() {
		stamp = fmt.Sprintf("\"%s\"", t.Time.Format("2006-01-02 15:04:05"))
	}
	return []byte(stamp), nil
}
func (t *Time) UnmarshalJSON(b []byte) error {
	tt, err := byteToTime(b, "")
	if err == nil {
		*t = tt
	}
	return err
}
func (t Time) Value() (driver.Value, error) {
	var zeroTime time.Time
	if t.Time.UnixNano() == zeroTime.UnixNano() {
		return nil, nil
	}
	return t.Time, nil
}