woj-server/internal/e/err.go

12 lines
149 B
Go
Raw Normal View History

2022-09-07 23:34:37 +08:00
package e
2022-09-20 14:15:21 +08:00
type Status int
2022-09-07 23:34:37 +08:00
2022-09-20 14:15:21 +08:00
func (code Status) String() string {
2022-09-07 23:34:37 +08:00
msg, ok := msgText[code]
if ok {
return msg
}
return msgText[InternalError]
}