github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/go/ssa/testdata/src/strings/strings.go (about)

     1  package strings
     2  
     3  func Replace(s, old, new string, n int) string
     4  func Index(haystack, needle string) int
     5  func Contains(haystack, needle string) bool
     6  func HasPrefix(s, prefix string) bool
     7  func EqualFold(s, t string) bool
     8  func ToLower(s string) string
     9  
    10  type Builder struct{}
    11  
    12  func (b *Builder) WriteString(s string) (int, error)
    13  func (b *Builder) String() string