code optimization

code optimization
This commit is contained in:
werben
2023-04-23 14:40:14 +08:00
parent 58f091fb98
commit a16344e4ce
5 changed files with 27 additions and 22 deletions

View File

@@ -9,10 +9,12 @@ type err struct {
Code int
}
// String return the error's message
func (e err) String() string {
return e.Msg
}
// Error return the error's message
func (e err) Error() string {
return e.Msg
}