Balík: golang-github-benbjohnson-immutable-dev (0.2.0-2)
Odkazy pre golang-github-benbjohnson-immutable-dev
Stiahnuť zdrojový balík golang-github-benbjohnson-immutable:
- Domovská stránka [github.com]
Immutable collections for Go (library)
This library contains immutable collection types for Go. It includes List, Map, and SortedMap implementations. Immutable collections can provide efficient, lock free sharing of data by requiring that edits to the collections return new collections.
The collection types in this library are meant to mimic Go built-in collections such asslice and map. The primary usage difference between Go collections and immutable collections is that immutable collections always return a new collection on mutation so you will need to save the new reference.
Immutable collections are not for every situation, however, as they can incur additional CPU and memory overhead. Please evaluate the cost/benefit for your particular project.