Registry / serialization / mashingan-smapping

mashingan-smapping

JSON →
library0.1.19gogounverified

A Go library for mapping structs to interface{} or map[string]interface{} using reflection and field tags.

go get github.com/mashingan/smapping
INSTALL
IMPORT
SIG · MASHINGAN-SMAPPING
M
mashingan-smapping
serializationgov0.1.19
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.

smapping
github.com/mashingan/smapping

Map a struct to a map[string]interface{}.

package main import ( "fmt" "github.com/mashingan/smapping" ) type User struct { Name string `json:"name"` Age int `json:"age"` } func main() { u := User{Name: "Alice", Age: 30} m := smapping.Map(u) fmt.Println(m) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mashingan-smapping — go get mashingan-smapping · libregistry