mirror of
https://github.com/golang/go
synced 2024-11-05 15:06:09 -07:00
f96de0f7c8
before the beginning of another function. For example, a snippet in `godoc -ex strings` would change from < func Contains(s, substr string) bool Contains reports whether substr is within s. Example: fmt.Println(strings.Contains("seafood", "foo")) fmt.Println(strings.Contains("seafood", "bar")) fmt.Println(strings.Contains("seafood", "")) fmt.Println(strings.Contains("", "")) // Output: // true // false // true // true func ContainsAny(s, chars string) bool ContainsAny reports whether any Unicode code points in chars are within s. Example: fmt.Println(strings.ContainsAny("team", "i")) fmt.Println(strings.ContainsAny("failure", "u & i")) fmt.Println(strings.ContainsAny("foo", "")) fmt.Println(strings.ContainsAny("", "")) // Output: // false // true // false // false func ContainsRune(s string, r rune) bool > to < func Contains(s, substr string) bool Contains reports whether substr is within s. Example: fmt.Println(strings.Contains("seafood", "foo")) fmt.Println(strings.Contains("seafood", "bar")) fmt.Println(strings.Contains("seafood", "")) fmt.Println(strings.Contains("", "")) // Output: // true // false // true // true func ContainsAny(s, chars string) bool ContainsAny reports whether any Unicode code points in chars are within s. Example: fmt.Println(strings.ContainsAny("team", "i")) fmt.Println(strings.ContainsAny("failure", "u & i")) fmt.Println(strings.ContainsAny("foo", "")) fmt.Println(strings.ContainsAny("", "")) // Output: // false // true // false // false func ContainsRune(s string, r rune) bool > Fixes: golang/go#13053 Change-Id: I355870b1e90b2b6ca0104d67e85869593f294252 Reviewed-on: https://go-review.googlesource.com/16329 Reviewed-by: Andrew Gerrand <adg@golang.org> |
||
---|---|---|
.. | ||
analysis | ||
dl | ||
proxy | ||
redirect | ||
short | ||
static | ||
util | ||
vfs | ||
appengine.go | ||
cmdline_test.go | ||
cmdline.go | ||
corpus.go | ||
dirtrees.go | ||
format.go | ||
godoc_test.go | ||
godoc.go | ||
index_test.go | ||
index.go | ||
linkify.go | ||
meta.go | ||
page.go | ||
parser.go | ||
pres.go | ||
search.go | ||
server.go | ||
snippet.go | ||
spec.go | ||
spot.go | ||
tab.go | ||
template.go |