Skip to content

RealFax/order-map

Repository files navigation

Order map - Keep everything in order

We ensure that the API and semantics are compatible with sync.Map. If you have any questions, please raise them in the issue

Installation

go get github.com/RealFax/order-map@latest

Quickstart

package main

import odmap "github.com/RealFax/order-map"

func main() {
	m := odmap.New[int, string]()
	m.Store(0, "Hello")
	m.Store(1, "World")
	m.Store(2, "😄😄😄")

	m.Range(func(key int, value string) bool {
		print(value, " ")
		return true
	})
}

Roadmap

Welcome to propose more features in the issue

  • Concurrency safety (add --tags=safety_map enabled)

⚠️Note. Features such as: Len (safety_map unsupported), Contains are not stable and may be removed or have semantic changes in the future.

About

implementation of high performance concurrent safe ordered map

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages