mirror of
https://github.com/rwxrob/bonzai
synced 2024-11-18 15:25:45 +00:00
17 lines
268 B
Go
17 lines
268 B
Go
package set_test
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/rwxrob/bonzai/set"
|
|
)
|
|
|
|
func ExampleMinus() {
|
|
s := []string{
|
|
"one", "two", "three", "four", "five", "six", "seven",
|
|
}
|
|
fmt.Println(set.Minus(s, []string{"two", "four", "six"}))
|
|
// Output:
|
|
// [one three five seven]
|
|
}
|