github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/simple/s1004/testdata/src/example.com/CheckBytesCompare/compare.go (about)

     1  package pkg
     2  
     3  import "bytes"
     4  
     5  func fn() {
     6  	_ = bytes.Compare(nil, nil) == 0 //@ diag(` bytes.Equal`)
     7  	_ = bytes.Compare(nil, nil) != 0 //@ diag(`!bytes.Equal`)
     8  	_ = bytes.Compare(nil, nil) > 0
     9  	_ = bytes.Compare(nil, nil) < 0
    10  }