An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 7.7% on proxy.golang.org

proxy.golang.org : github.com/aohorodnyk/binflags

This package contains a super fast and collection that stores a state in bits. There are two implementations you can find in the package: Both of them can help to minify the memory usage and the time spent for Set data-structure. If you need to save a uint in set, then this implementation will be much more efficient than the usual Set. The Set key is storing in 1 bit in an array or map. This data structure is useful to share the flags in JSON or store them in a database. There's an article that shares the motivation to have this implementation: https://aohorodnyk.com/post/2021-01-03-binary-flags/

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/aohorodnyk/binflags
Keywords: binary-flags , binflags , bitset , bitset-array , bitset-library , bitset-map , flag , flags , flagset , go , golang , golang-library , golang-module
License: MIT
Latest release: over 2 years ago
First release: over 4 years ago
Namespace: github.com/aohorodnyk
Stars: 8 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 26 days ago

    Loading...
    Readme
    Loading...