Socket
Book a DemoInstallSign in
Socket

md0.org/orderedmap

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

md0.org/orderedmap

v0.5.0
Go
Version published
Created
Source

orderedmap

An implementation of an ordered map. It's not very efficient, I'm sure. It uses a slice alongside the (private, builtin, non-ordered) map to keep the keys in order.

It should be safe for concurrent use. All the methods on OrderedMap are protected with a (read-write) mutex.

I took the tests from elliotchance/orderedmap, but ripped out the testify/assert stuff, and replaced the bits used (poorly, I'm sure!) with my own stuff (but supplemented liberally from the testify library). That all ended up in assert_test.go.

(I need to put that in its own project so I can copy it into forks of projects where I rip out testify/assert. I don't like libraries/projects I use to depend on testify, it seems really really silly to me.)

TODO

  • Implementing the commented out functions at the bottom of orderedmap.go from package maps.
  • Implementing the "extras" (Front(), Back(), something else?) from elliotchance/orderedmap.

license

MIT

FAQs

Package last updated on 13 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.