全部搜尋項
trixie  ] [  sid  ]
[ 原始碼: golang-github-wk8-go-ordered-map  ]

套件:golang-github-wk8-go-ordered-map-dev(2.1.8-2)

golang-github-wk8-go-ordered-map-dev 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 golang-github-wk8-go-ordered-map

維護小組:

外部的資源:

相似套件:

Optimal implementation of ordered maps for Golang (Go library)

Golang Ordered Maps

Same as regular maps, but also remembers the order in which keys were inserted, akin to Python's collections.OrderedDicts: https://docs.python.org/3.7/library/collections.html#ordereddict-objects

It offers the following features:

 * optimal runtime performance (all operations are constant time)
 * optimal memory usage (only one copy of values, no unnecessary memory
   allocation)
 * allows iterating from newest or oldest keys indifferently, without
   memory copy, allowing to break the iteration, and in time linear to the
   number of keys iterated over rather than the total length of the
   ordered map
 * supports any generic types for both keys and values. If you're
   running go < 1.18, you can use version 1 (https://github.com/wk8/go-
   ordered-map/tree/v1) that takes and returns generic interface{}s instead
   of using generics
 * idiomatic API, akin to that of container/list
   (https://golang.org/pkg/container/list)
 * support for JSON and YAML marshalling

Documentation

The full documentation is available on pkg.go.dev: https://pkg.go.dev/github.com/wk8/go-ordered-map/v2

其他與 golang-github-wk8-go-ordered-map-dev 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 golang-github-wk8-go-ordered-map-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 14。6 kB78。0 kB [檔案列表]