1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 23:22:28 +08:00

doc: add doc for OrderedMap

This commit is contained in:
dudaodong
2024-09-02 11:19:05 +08:00
parent 5a38e34063
commit 81b29baf30
4 changed files with 1681 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ func NewOrderedMap[K comparable, V any]() *OrderedMap[K, V] {
}
}
// Get returns the value for the given key.
// Sets the given key-value pair.
// Play: todo
func (om *OrderedMap[K, V]) Set(key K, value V) {
om.mu.Lock()