github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/staticcheck/testdata/CheckEncodingBinary_go17.go (about)

     1  package pkg
     2  
     3  import (
     4  	"encoding/binary"
     5  	"io/ioutil"
     6  	"log"
     7  )
     8  
     9  func fn() {
    10  	var x bool
    11  	log.Println(binary.Write(ioutil.Discard, binary.LittleEndian, x)) // MATCH "cannot be used with binary.Write"
    12  }