File: example_presence_test.go

package info (click to toggle)
golang-github-thoas-go-funk 0.9.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 504 kB
  • sloc: makefile: 10
file content (14 lines) | stat: -rw-r--r-- 209 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package funk

import "fmt"

func ExampleSome() {
	a := []string{"foo", "bar", "baz"}
	fmt.Println(Some(a, "foo", "qux"))

	b := "Mark Shaun"
	fmt.Println(Some(b, "Marc", "Sean"))

	// Output: true
	// false
}