Registry / utility / go-playground-mold-v4

go-playground-mold-v4

JSON →
library4.5.1gogounverified

Mold is a Go library for data transformation and sanitization.

go get github.com/go-playground/mold/v4
INSTALL
IMPORT
SIG · GO-PLAYGROUND-MOLD
G
go-playground-mold-v4
utilitygov4.5.1
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.

mold
github.com/go-playground/mold/v4

Transform and sanitize struct fields using mold tags.

package main import ( "fmt" "github.com/go-playground/mold/v4" ) func main() { type User struct { Name string `mold:"trim"` } user := User{Name: " John "} mold.Transform(&user) fmt.Println(user.Name) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
go-playground-mold-v4 — go get go-playground-mold-v4 · libregistry