github.com/jd-ly/tools@v0.5.7/go/ssa/interp/testdata/src/strings/strings.go (about) 1 package strings 2 3 func Replace(s, old, new string, n int) string 4 5 func Index(haystack, needle string) int 6 7 func Contains(haystack, needle string) bool { 8 return Index(haystack, needle) >= 0 9 }