github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/staticcheck/sa1003/testdata/src/example.com/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  }