github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/unused/testdata/src/example.com/blank/blank.go (about)

     1  package pkg
     2  
     3  import _ "fmt"
     4  
     5  type t1 struct{} //@ used("t1", false)
     6  type t2 struct { //@ used("t2", true)
     7  	_ int //@ used("_", true)
     8  }
     9  type t3 struct{} //@ used("t3", true)
    10  type t4 struct{} //@ used("t4", true)
    11  type t5 struct{} //@ used("t5", true)
    12  
    13  var _ = t2{} //@ used("_", true)
    14  
    15  func fn1() { //@ used("fn1", false)
    16  	_ = t1{}
    17  	var _ = t1{} //@ quiet("_")
    18  }
    19  
    20  func fn2() { //@ used("fn2", true)
    21  	_ = t3{}
    22  	var _ t4        //@ used("_", true)
    23  	var _ *t5 = nil //@ used("_", true)
    24  }
    25  
    26  func init() { //@ used("init", true)
    27  	fn2()
    28  }
    29  
    30  func _() {} //@ used("_", true)
    31  
    32  type _ struct{} //@ used("_", true)