Registry / utility / bytedance-go-tagexpr-v2

bytedance-go-tagexpr-v2

JSON →
library2.9.11gogounverified

Package tagexpr provides a struct tag expression syntax for field validation and more.

go get github.com/bytedance/go-tagexpr/v2
INSTALL
IMPORT
SIG · BYTEDANCE-GO-TAGEX
B
bytedance-go-tagexpr-v2
utilitygov2.9.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tagexpr
github.com/bytedance/go-tagexpr/v2

Validates a struct using tag expressions.

package main import ( "fmt" "github.com/bytedance/go-tagexpr/v2" ) type User struct { Name string `tagexpr:"$!=''"` } func main() { u := User{Name: "Alice"} ok, err := tagexpr.Check(u) fmt.Println(ok, err) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.9.11latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
bytedance-go-tagexpr-v2 — go get bytedance-go-tagexpr-v2 · libregistry