golint fix
This commit is contained in:
parent
ccabb48a4f
commit
194ba2b6d6
|
@ -27,6 +27,7 @@ var (
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// FromDB implemented xorm.Conversion convent database data to self
|
||||||
func (s *Status) FromDB(bytes []byte) error {
|
func (s *Status) FromDB(bytes []byte) error {
|
||||||
if r, ok := Statuses[string(bytes)]; ok {
|
if r, ok := Statuses[string(bytes)]; ok {
|
||||||
*s = r
|
*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) {
|
func (s *Status) ToDB() ([]byte, error) {
|
||||||
return []byte(s.Name), nil
|
return []byte(s.Name), nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@ import (
|
||||||
"github.com/go-xorm/core"
|
"github.com/go-xorm/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// default log options
|
||||||
const (
|
const (
|
||||||
DEFAULT_LOG_PREFIX = "[xorm]"
|
DEFAULT_LOG_PREFIX = "[xorm]"
|
||||||
DEFAULT_LOG_FLAG = log.Ldate | log.Lmicroseconds
|
DEFAULT_LOG_FLAG = log.Ldate | log.Lmicroseconds
|
||||||
|
|
Loading…
Reference in New Issue