Your message dated Sat, 09 May 2026 06:00:19 +0000
with message-id <[email protected]>
and subject line Bug#1135933: fixed in golang-github-elliotchance-orderedmap
1.8.0-1
has caused the Debian Bug report #1135933,
regarding ITP: golang-github-elliotchance-orderedmap An ordered map in Go with
amortized O(1) for Set, Get, Delete and_Len
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1135933: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1135933
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: wnpp
Severity: wishlist
Owner: Christoph Martin <[email protected]>
* Package name : golang-github-elliotchance-orderedmap
Version : 1.8.0-1
Upstream Author : Elliot Chance
* URL : https://github.com/elliotchance/orderedmap
* License : Expat
Programming Lang: Go
Description : An ordered map in Go with amortized O(1) for Set,
Get, Delete and Len.
Basic Usage
.
An *OrderedMap is a high performance ordered map that maintains
amortized O(1) for Set, Get, Delete and Len:
.
import "github.com/elliotchance/orderedmap/v3"
.
func main() {
m := orderedmap.NewOrderedMap[string, any]()
.
m.Set("foo", "bar")
m.Set("qux", 1.23)
m.Set("123", true)
.
m.Delete("qux")
}
.
| [!NOTE]
|
| * *v3 requires Go v1.23* - If you need to support Go 1.18-1.22, you
can
| use v2.
| * *v2 requires Go v1.18 for generics* - If you need to support Go 1.
17
| or below, you can use v1.
.
Internally an *OrderedMap uses the composite type map
(https://go.dev/blog/maps) combined with a trimmed down linked list to
maintain the order.
.
Iterating
.
The following methods all return iterators
(https://go.dev/doc/go1.23#iterators) that can be used to loop over
elements in an ordered map:
.
* AllFromFront()
* AllFromBack()
* Keys()
* Values()
.
// Iterate through all elements from oldest to newest:
for key, value := range m.AllFromFront() {
fmt.Println(key, value)
}
.
Iterators are safe to use bidirectionally, and will return nil once it
goes beyond the first or last item. If the map is changing while the
iteration is in-flight it may produce unexpected behavior.
.
If you want to get a slice of the map keys or values, you can use the
standard slices.Collect method with the iterator returned from Keys() or
Values():
.
fmt.Println(slices.Collect(m.Keys())
// [A B C]
.
Likewise, calling maps.Collect on the iterator returned from
AllFromFront() will create a regular unordered map from the ordered one:
.
fmt.Println(maps.Collect(m.AllFromFront())
// [A:1 B:2 C:3]
.
If you don't want to use iterators, you can also manually loop over the
elements using Front() or Back() with Next():
.
// Iterate through all elements from oldest to newest:
for el := m.Front(); el != nil; el = el.Next() {
fmt.Println(el.Key, el.Value)
}
.
// You can also use Back and Prev to iterate in reverse:
for el := m.Back(); el != nil; el = el.Prev() {
fmt.Println(el.Key, el.Value)
}
--- End Message ---
--- Begin Message ---
Source: golang-github-elliotchance-orderedmap
Source-Version: 1.8.0-1
Done: Christoph Martin <[email protected]>
We believe that the bug you reported is fixed in the latest version of
golang-github-elliotchance-orderedmap, which is due to be installed in the
Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christoph Martin <[email protected]> (supplier of updated
golang-github-elliotchance-orderedmap package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 07 May 2026 14:52:07 +0200
Source: golang-github-elliotchance-orderedmap
Binary: golang-github-elliotchance-orderedmap-dev
Architecture: source all
Version: 1.8.0-1
Distribution: experimental
Urgency: medium
Maintainer: Debian Go Packaging Team <[email protected]>
Changed-By: Christoph Martin <[email protected]>
Description:
golang-github-elliotchance-orderedmap-dev - Ordered map in Go with amortized
O(1) for Set, Get, Delete and Le
Closes: 1135933
Changes:
golang-github-elliotchance-orderedmap (1.8.0-1) experimental; urgency=medium
.
* Initial release (Closes: #1135933)
* add fix for test case from upstream pull request
Checksums-Sha1:
2fc018f78b7813e25702228660b91490d349ca14 2418
golang-github-elliotchance-orderedmap_1.8.0-1.dsc
1e5eb07f285758bdb09facadb9a288f9c7bf3f67 19998
golang-github-elliotchance-orderedmap_1.8.0.orig.tar.gz
19257854e87a89f00e5cac48698ffdd57b75ac1d 3368
golang-github-elliotchance-orderedmap_1.8.0-1.debian.tar.xz
c1131614ae62cc0a60880d8f32132250c3dbc9e6 10412
golang-github-elliotchance-orderedmap-dev_1.8.0-1_all.deb
2e653c42d9c1fba9e819e46c24b51a232a7f49a9 7035
golang-github-elliotchance-orderedmap_1.8.0-1_amd64.buildinfo
Checksums-Sha256:
360890167a3dc1227e8637822d34d8d1ab144d3d474a4e86b243de5aad658bc1 2418
golang-github-elliotchance-orderedmap_1.8.0-1.dsc
8f2c79096719658792bc3eba337a09d9bd4c143c88d2d2268f56fae2bd68af83 19998
golang-github-elliotchance-orderedmap_1.8.0.orig.tar.gz
2841e2b3179a9b4f7e62c28452775edb18313303e3ccac39419b078d3109708c 3368
golang-github-elliotchance-orderedmap_1.8.0-1.debian.tar.xz
488091531502f6151fc68b1b27e63df5fe70120c926c036186bc6abe4f3c1e08 10412
golang-github-elliotchance-orderedmap-dev_1.8.0-1_all.deb
170e205f2032cf0fc47e8f8748b456b64eb8da12c8b474f545f96d701cd6d060 7035
golang-github-elliotchance-orderedmap_1.8.0-1_amd64.buildinfo
Files:
c68075be3e540119b8848efb4fd2f253 2418 golang optional
golang-github-elliotchance-orderedmap_1.8.0-1.dsc
fbe0780438bf99c34fc0a29fe52d0038 19998 golang optional
golang-github-elliotchance-orderedmap_1.8.0.orig.tar.gz
7c28b9e0a992c5298562e4e46951124d 3368 golang optional
golang-github-elliotchance-orderedmap_1.8.0-1.debian.tar.xz
b6588f41bc4e01c6d00f3c923284bc08 10412 golang optional
golang-github-elliotchance-orderedmap-dev_1.8.0-1_all.deb
62284c55f4c5286eb5ed5afb0c72bb35 7035 golang optional
golang-github-elliotchance-orderedmap_1.8.0-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEbdFebnsTnCYy4y02kcMUbl2GabQFAmn9me4ACgkQkcMUbl2G
abQ6WQ//T8xtySv576bGuymGc8rKJYXmGbr9Rh76lEYt2moOUNXhmAyQ6em9+yWL
Y0AZ995LEYTo0zlEcsVcnSTHffwmZLZsIDAPTCsTWWfIl13MB3YJfYx3aI155gF/
xz8GtaDq9i7ilM2o94IoGiY8/9qEHcByQJnWFAl3kDdauiMn2jK2ZyHK9fRCfGWe
OBjjSRud44OkI/SDMZoHwQEE4t7CbK8onW7UymLZTAxvIXwArE+kFYZMx0RkG5NN
bqpGTx57uyBhhRQegXX+ptK7WtF4xUTFlb1Q0+hwlZPeFbaL455JnCG7H2nIZ5UO
ecsXrIfvHKDaVFfU4XTkDZ8s2q29UgN+tsZgsA4dNbY+tJS8H771ifnKlYWO7T/4
1miApq4X1MClIc0/csBSPdHwSkh4pBdht+ez1iKg2ngngl1S5UQGnZoheDUcNgZO
229cF2UhoNzAM276ktCc30Rr3ZLOP2ZG5CRD012a3vXmdAetjg9+HmD80CCdhtUg
hQkMwA5nv0uIlB5jNiaX8QyeuxbhiFIZJi2PWaBqNheDF6/lK78MJH9ymjiqiL7D
H3Mg15apEQAB5KMh+rMM3BNy1E8eenZrlfOYM9MuGrKXqpvQzowJQWIgr9rTMijI
FQE1R8U0E5C/aiH9PCwEw19m4CIv1sgdpl26TPyaEzKwidIUahk=
=6A0Q
-----END PGP SIGNATURE-----
pgp4FHjv1cXGG.pgp
Description: PGP signature
--- End Message ---