Golang does not have a Set, you can use a map. s2 := make(map[string]bool) // or as a literal to insert values at init s1 := map[string]bool{}