https://github.com/micnncim/go-set
Go package for sets implemented with generics
https://github.com/micnncim/go-set
Last synced: 2 months ago
JSON representation
Go package for sets implemented with generics
- Host: GitHub
- URL: https://github.com/micnncim/go-set
- Owner: micnncim
- License: apache-2.0
- Created: 2022-09-09T06:26:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-12T10:24:57.000Z (almost 3 years ago)
- Last Synced: 2025-04-01T08:40:33.034Z (3 months ago)
- Language: Go
- Size: 19.5 KB
- Stars: 44
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-set
[![actions-workflow-test][actions-workflow-test-badge]][actions-workflow-test]
[![release][release-badge]][release]
[![pkg.go.dev][pkg.go.dev-badge]][pkg.go.dev]
[![license][license-badge]][license]An experimental Go package that defines various methods for a [set](https://en.wikipedia.org/wiki/Set_(abstract_data_type)) implemented with Go generics.
## Usage
See the [examples](./example_test.go).
## Alternatives
- [golang.org/x/exp/slices](https://pkg.go.dev/golang.org/x/exp/slices)
- `go-set` may be a better option if you don't find functions you want in this packages.
- [k8s.io/apimachinery/pkg/util/sets](https://pkg.go.dev/k8s.io/apimachinery/pkg/util/sets)
- `go-set` may be a better option if you prefer to use generics.[actions-workflow-test]: https://github.com/micnncim/go-set/actions?query=workflow%3ATest
[actions-workflow-test-badge]: https://img.shields.io/github/workflow/status/micnncim/go-set/Test?label=Test&style=for-the-badge&logo=github[release]: https://github.com/micnncim/go-set/releases
[release-badge]: https://img.shields.io/github/v/release/micnncim/go-set?style=for-the-badge&logo=github[pkg.go.dev]: https://pkg.go.dev/github.com/micnncim/go-set?tab=overview
[pkg.go.dev-badge]: http://bit.ly/pkg-go-dev-badge[license]: LICENSE
[license-badge]: https://img.shields.io/github/license/micnncim/go-set?style=for-the-badge