separate type define (#975)

This commit is contained in:
田欧
2017-07-05 15:47:36 +08:00
committed by Bo-Yi Wu
parent 22fc0284e3
commit d535fcd598
6 changed files with 125 additions and 133 deletions

View File

@ -23,15 +23,13 @@ const (
ErrorTypeNu = 2
)
type (
Error struct {
Err error
Type ErrorType
Meta interface{}
}
type Error struct {
Err error
Type ErrorType
Meta interface{}
}
errorMsgs []*Error
)
type errorMsgs []*Error
var _ error = &Error{}