doc.go 601 B

123456789101112131415161718192021
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Package set provides simple set data structures for uint64 and string types.
  5. //
  6. // The API for every set is:
  7. // type Set(T {}) opaque
  8. //
  9. // // Len reports the number of elements in the set.
  10. // func (Set) Len() int
  11. //
  12. // // Has reports whether an item is in the set.
  13. // func (Set) Has(T) bool
  14. //
  15. // // Set inserts the item into the set.
  16. // func (Set) Set(T)
  17. //
  18. // // Clear removes the item from the set.
  19. // func (Set) Clear(T)
  20. package set