Registry / utility / juju-collections

juju-collections

JSON →
library1.0.4gogounverified

Package collections provides generic collection types and utilities for Go.

go get github.com/juju/collections
INSTALL
IMPORT
SIG · JUJU-COLLECTIONS
J
juju-collections
utilitygov1.0.4
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.

collections
github.com/juju/collections

Create a set, add elements, and check membership.

package main import ( "fmt" "github.com/juju/collections" ) func main() { s := collections.NewSet[int]() s.Add(1) s.Add(2) fmt.Println(s.Contains(1)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
juju-collections — go get juju-collections · libregistry