github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/staticcheck/testdata/src/CheckNonUniqueCutset/CheckNonUniqueCutset.go (about)

     1  package pkg
     2  
     3  import "strings"
     4  
     5  func fn(s string) {
     6  	_ = strings.TrimLeft(s, "")
     7  	_ = strings.TrimLeft(s, "a")
     8  	_ = strings.TrimLeft(s, "ยต")
     9  	_ = strings.TrimLeft(s, "abc")
    10  	_ = strings.TrimLeft(s, "http://") // MATCH "duplicate characters"
    11  }