github.com/jxskiss/gopkg/v2@v2.14.9-0.20240514120614-899f3e7952b4/utils/vdutil/doc.go (about) 1 // Package vdutil helps to do data validation. 2 // 3 // It defines an abstract Rule interface to run validating rules, 4 // some commonly used rules are implemented in this package. 5 // User can define their own validating rules, for example wrapping 6 // "github.com/go-playground/validator" and 7 // "github.com/bytedance/go-tagexpr" to validate structs, 8 // or validating data passed through context.Context and save the 9 // result to Result.Data for further accessing. 10 package vdutil