Registry / utility / xtgo-set

xtgo-set

JSON →
library1.0.0gogounverified

Type-safe, non-allocating set operations on ordered slices.

go get github.com/xtgo/set
INSTALL
IMPORT
SIG · XTGO-SET
X
xtgo-set
utilitygov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

set
github.com/xtgo/set

Remove duplicates from a sorted slice using set.Uniq.

package main import ( "fmt" "sort" "github.com/xtgo/set" ) func main() { data := []int{1, 2, 3, 2, 4} sort.Ints(data) n := set.Uniq(data) fmt.Println(data[:n]) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
xtgo-set — go get xtgo-set · libregistry