Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 385 Bytes

title.md

File metadata and controls

17 lines (12 loc) · 385 Bytes

Title Case Normalizer

The title normalizer maps the first letter of each word to their upper case. It can be mixed with checkers and other normalizers when defining the validation steps for user data.

type Book struct {
  Chapter string `checkers:"title"`
}

book := &Book{
  Chapter: "THE checker",
}

checker.Check(book)

fmt.Println(book.Chapter) // The Checker