Registry / utility / ordmap

ordmap

JSON →
library0.5.10gogounverified

An ordered map implementation for Go, preserving insertion order while providing map-like operations.

go get goki.dev/ordmap
INSTALL
IMPORT
SIG · ORDMAP
O
ordmap
utilitygov0.5.10
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.

ordmap
goki.dev/ordmap

Creates an ordered map, inserts key-value pairs, and iterates in insertion order.

package main import ( "fmt" "goki.dev/ordmap" ) func main() { m := ordmap.New[string, int]() m.Set("a", 1) m.Set("b", 2) m.ForEach(func(key string, val int) bool { fmt.Println(key, val) return true }) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ordmap — go get ordmap · libregistry