...

Source file src/github.com/thoas/go-funk/example_presence_test.go

Documentation: github.com/thoas/go-funk

     1  package funk
     2  
     3  import "fmt"
     4  
     5  func ExampleSome() {
     6  	a := []string{"foo", "bar", "baz"}
     7  	fmt.Println(Some(a, "foo", "qux"))
     8  
     9  	b := "Mark Shaun"
    10  	fmt.Println(Some(b, "Marc", "Sean"))
    11  
    12  	// Output: true
    13  	// false
    14  }
    15  

View as plain text