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

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