Registry / utility / fatih-structs

fatih-structs

JSON →
library1.1.0gogounverified

Package structs contains various utilities functions to work with structs.

go get github.com/fatih/structs
INSTALL
IMPORT
SIG · FATIH-STRUCTS
F
fatih-structs
utilitygov1.1.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/fatih/structs

Convert a struct to a map.

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

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fatih-structs — go get fatih-structs · libregistry