| 1 |
Source: golang-github-wk8-go-ordered-map |
| 2 |
Section: golang |
| 3 |
Priority: optional |
| 4 |
Maintainer: Debian Go Packaging Team <[email protected]> |
| 5 |
Uploaders: |
| 6 |
Simon Josefsson <[email protected]>, |
| 7 |
Rules-Requires-Root: no |
| 8 |
Build-Depends: |
| 9 |
debhelper-compat (= 13), |
| 10 |
dh-sequence-golang, |
| 11 |
golang-any, |
| 12 |
golang-github-bahlo-generic-list-go-dev, |
| 13 |
golang-github-buger-jsonparser-dev, |
| 14 |
golang-github-mailru-easyjson-dev, |
| 15 |
golang-github-stretchr-testify-dev, |
| 16 |
golang-gopkg-yaml.v3-dev, |
| 17 |
Testsuite: autopkgtest-pkg-go |
| 18 |
Standards-Version: 4.7.0 |
| 19 |
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-wk8-go-ordered-map |
| 20 |
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-wk8-go-ordered-map.git |
| 21 |
Homepage: https://github.com/wk8/go-ordered-map |
| 22 |
XS-Go-Import-Path: github.com/wk8/go-ordered-map |
| 23 |
|
| 24 |
Package: golang-github-wk8-go-ordered-map-dev |
| 25 |
Architecture: all |
| 26 |
Multi-Arch: foreign |
| 27 |
Depends: |
| 28 |
golang-github-bahlo-generic-list-go-dev, |
| 29 |
golang-github-buger-jsonparser-dev, |
| 30 |
golang-github-mailru-easyjson-dev, |
| 31 |
golang-github-stretchr-testify-dev, |
| 32 |
golang-gopkg-yaml.v3-dev, |
| 33 |
${misc:Depends}, |
| 34 |
Description: Optimal implementation of ordered maps for Golang (Go library) |
| 35 |
Golang Ordered Maps |
| 36 |
. |
| 37 |
Same as regular maps, but also remembers the order in which keys were |
| 38 |
inserted, akin to Python's collections.OrderedDicts: |
| 39 |
https://docs.python.org/3.7/library/collections.html#ordereddict-objects |
| 40 |
. |
| 41 |
It offers the following features: |
| 42 |
. |
| 43 |
* optimal runtime performance (all operations are constant time) |
| 44 |
* optimal memory usage (only one copy of values, no unnecessary memory |
| 45 |
allocation) |
| 46 |
* allows iterating from newest or oldest keys indifferently, without |
| 47 |
memory copy, allowing to break the iteration, and in time linear to the |
| 48 |
number of keys iterated over rather than the total length of the |
| 49 |
ordered map |
| 50 |
* supports any generic types for both keys and values. If you're |
| 51 |
running go < 1.18, you can use version 1 (https://github.com/wk8/go- |
| 52 |
ordered-map/tree/v1) that takes and returns generic interface{}s instead |
| 53 |
of using generics |
| 54 |
* idiomatic API, akin to that of container/list |
| 55 |
(https://golang.org/pkg/container/list) |
| 56 |
* support for JSON and YAML marshalling |
| 57 |
. |
| 58 |
Documentation |
| 59 |
. |
| 60 |
The full documentation is available on pkg.go.dev: |
| 61 |
https://pkg.go.dev/github.com/wk8/go-ordered-map/v2 |