gopkg.in/golangci/golangci-lint.v1@v1.10.1/test/testdata/gofmt.go (about) 1 // args: -Egofmt 2 package testdata 3 4 import "fmt" 5 6 func GofmtNotSimplified() { 7 var x []string 8 fmt.Print(x[1:len(x)]) // ERROR "File is not `gofmt`-ed with `-s`" 9 }