Registry / serialization / swaggest-form-v5

swaggest-form-v5

JSON →
library5.1.1gogounverified

A Go library for decoding url.Values into Go values and encoding Go values into url.Values, supporting nested structs, slices, maps, and custom types.

go get github.com/swaggest/form/v5
INSTALL
IMPORT
SIG · SWAGGEST-FORM-V5
S
swaggest-form-v5
serializationgov5.1.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.

form
github.com/swaggest/form/v5

Decodes URL query parameters into a struct using the form package.

package main import ( "fmt" "net/url" "github.com/swaggest/form/v5" ) func main() { type Person struct { Name string `form:"name"` Age int `form:"age"` } var p Person values := url.Values{"name": {"Alice"}, "age": {"30"}} decoder := form.NewDecoder() decoder.Decode(&p, values) fmt.Printf("%+v\n", p) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
swaggest-form-v5 — go get swaggest-form-v5 · libregistry