Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 368 Bytes

upper.md

File metadata and controls

15 lines (11 loc) · 368 Bytes

Upper Case Normalizer

The upper normalizer maps all Unicode letters in the given value to their upper case. It can be mixed with checkers and other normalizers when defining the validation steps for user data.

type User struct {
  Username string `checkers:"upper"`
}

user := &User{
  Username: "chECker",
}

fmt.Println(user.Username) // CHECKER