github.com/go-board/x-go@v0.1.2-0.20220610024734-db1323f6cb15/xmap/set.go (about) 1 package xmap 2 3 import ( 4 "github.com/go-board/x-go/xcontainer/set" 5 ) 6 7 func KeySet(m interface{}) set.AnyHashSet { 8 return set.NewAnyHashSet(Keys(m)) 9 } 10 11 func ValueSet(m interface{}) set.AnyHashSet { 12 return set.NewAnyHashSet(Values(m)) 13 }