golint fix

This commit is contained in:
Lunny Xiao 2017-01-09 09:56:02 +08:00
parent ccabb48a4f
commit 194ba2b6d6
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,7 @@ var (
}
)
// FromDB implemented xorm.Conversion convent database data to self
func (s *Status) FromDB(bytes []byte) error {
if r, ok := Statuses[string(bytes)]; ok {
*s = r
@ -36,6 +37,7 @@ func (s *Status) FromDB(bytes []byte) error {
}
}
// ToDB implemented xorm.Conversion convent to database data
func (s *Status) ToDB() ([]byte, error) {
return []byte(s.Name), nil
}

View File

@ -12,6 +12,7 @@ import (
"github.com/go-xorm/core"
)
// default log options
const (
DEFAULT_LOG_PREFIX = "[xorm]"
DEFAULT_LOG_FLAG = log.Ldate | log.Lmicroseconds