definition
import (
"github.com/go-playground/locales/zh_Hans_CN"
"github.com/go-playground/validator/v10/translations/zh"
)
// ...
rans, _ = ut.New(zh_Hans_CN.New()).GetTranslator("zh")
type Test struct {
Urls []string `json:"urls" validate:"unique" label:"urls"`
}
output
Key: 'Test.urls' Error:Field validation for 'urls' failed on the 'unique' tag