woj-server/internal/e/err.go

12 lines
143 B
Go
Raw Normal View History

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