16 lines
247 B
Go
16 lines
247 B
Go
|
package app
|
||
|
|
||
|
import (
|
||
|
"github.com/astaxie/beego/validation"
|
||
|
"gin-server/lib/logging"
|
||
|
)
|
||
|
|
||
|
// MarkErrors logs error logs
|
||
|
func MarkErrors(errors []*validation.Error) {
|
||
|
for _, err := range errors {
|
||
|
logging.Info(err.Key, err.Message)
|
||
|
}
|
||
|
|
||
|
return
|
||
|
}
|