Registry / utility / nqd-flat

nqd-flat

JSON →
library0.2.0gogounverified

Flattens nested Go maps into a single-level map and supports unflattening back to nested structure.

go get github.com/nqd/flat
INSTALL
IMPORT
SIG · NQD-FLAT
N
nqd-flat
utilitygov0.2.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.

flat
github.com/nqd/flat

Flattens a nested map into a single-level map.

package main import ( "fmt" "github.com/nqd/flat" ) func main() { nested := map[string]interface{}{"a": map[string]interface{}{"b": "c"}} flatMap, _ := flat.Flatten(nested, nil) fmt.Println(flatMap) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
nqd-flat — go get nqd-flat · libregistry