honnef.co/go/tools@v0.4.7/staticcheck/testdata/src/example.com/CheckNonOctalFileMode/CheckNonOctalFileMode.go.golden (about)

     1  package pkg
     2  
     3  import "os"
     4  
     5  func fn() {
     6  	os.OpenFile("", 0, 0644) //@ diag(`file mode`)
     7  }
     8  
     9  func fn2() (string, int, os.FileMode) {
    10  	return "", 0, 0
    11  }
    12  
    13  func fn3() {
    14  	os.OpenFile(fn2())
    15  }