import "github.com/googlecloudplatform/kubernetes/pkg/util" initialValues := []string{"foo", "bar", "baz"} set := util.NewStringSetList(initialValues)
set := util.NewStringSetList([]string{"foo", "bar", "baz"}) set.Add("qux")
set := util.NewStringSetList([]string{"foo", "bar", "baz"}) set.Remove("bar")
set := util.NewStringSetList([]string{"foo", "bar", "baz"}) if set.Has("bar") { fmt.Println("bar is in the set") } else { fmt.Println("bar is not in the set") }This code creates a new StringSet List and then checks if it contains the value "bar". If so, it prints "bar is in the set", otherwise it prints "bar is not in the set".