aboutsummaryrefslogtreecommitdiff
path: root/set.go
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-01-24 20:27:22 +0800
committerGuangxiong Lin <[email protected]>2023-01-24 20:27:22 +0800
commit104ee66f5930f4a37ac84538c29a291bf1d08f4f (patch)
treec663768184594207fd68533a773740d99956c865 /set.go
parent3f6aeea8c795b8bff59c1a8b45700d7bc44da4b9 (diff)
downloadzk-104ee66f5930f4a37ac84538c29a291bf1d08f4f.tar.gz
zk-104ee66f5930f4a37ac84538c29a291bf1d08f4f.tar.bz2
zk-104ee66f5930f4a37ac84538c29a291bf1d08f4f.zip
Use cobra as command selector
Diffstat (limited to 'set.go')
-rw-r--r--set.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/set.go b/set.go
deleted file mode 100644
index 760c9ae..0000000
--- a/set.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package main
-
-type Set[T comparable] map[T]bool
-
-func (s Set[T]) Contain(val T) bool {
- _, ok := s[val]
- return ok
-}
-
-func (s Set[T]) Insert(val T) {
- s[val] = true
-}
-
-func (s Set[T]) Erase(val T) {
- delete(s, val)
-}