Registry / utility / jeremywohl-flatten

jeremywohl-flatten

JSON →
library1.0.1gogounverified

Flatten makes flat, one-dimensional maps from arbitrarily nested ones.

go get github.com/jeremywohl/flatten
INSTALL
IMPORT
SIG · JEREMYWOHL-FLATTEN
J
jeremywohl-flatten
utilitygov1.0.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.

flatten
github.com/jeremywohl/flatten

Flattens a nested map into a flat map with dot-separated keys.

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

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jeremywohl-flatten — go get jeremywohl-flatten · libregistry