mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
add comments
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"github.com/mayswind/lab/pkg/utils"
|
||||
)
|
||||
|
||||
// ValidUsername returns whether the given user name is valid
|
||||
func ValidUsername(fl validator.FieldLevel) bool {
|
||||
if value, ok := fl.Field().Interface().(string); ok {
|
||||
if utils.IsValidUsername(value) {
|
||||
|
||||
Reference in New Issue
Block a user