import ( "fmt" "github.com/eaciit/toolkit" ) // Create a new set and add some values set := toolkit.NewMSet() set.Add("apple") set.Add("orange") set.Add("banana") // Check if a value is in the set fmt.Println(set.Contains("apple")) // true fmt.Println(set.Contains("pear")) // false // Remove a value from the set set.Remove("banana") fmt.Println(set.Contains("banana")) // false // Get the number of values in the set fmt.Println(set.Count()) // 2 // Convert the set to a slice slice := set.ToArray() fmt.Println(slice) // ["apple", "orange"]In these examples, we create a new set and add some values to it. We then use the "Contains" method to check if a value is in the set, the "Remove" method to remove a value from the set, and the "Count" method to get the number of values in the set. Finally, we use the "ToArray" method to convert the set to a slice. Overall, the "M Set" package provides a simple and efficient way to work with sets of values in Go.