Registry / utility / rwxrob-structs

rwxrob-structs

JSON →
library0.6.0gogounverified

structs provides utility functions for working with Go structs, including conversion to maps and other transformations.

go get github.com/rwxrob/structs
INSTALL
IMPORT
SIG · RWXROB-STRUCTS
R
rwxrob-structs
utilitygov0.6.0
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.

structs
github.com/rwxrob/structs

Converts a struct to a map using structs.ToMap.

package main import ( "fmt" "github.com/rwxrob/structs" ) type Person struct { Name string Age int } func main() { p := Person{Name: "Alice", Age: 30} m := structs.ToMap(p) fmt.Println(m) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
rwxrob-structs — go get rwxrob-structs · libregistry