github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/unused/testdata/src/example.com/variables/variables.go (about) 1 package pkg 2 3 var a byte //@ used("a", true) 4 var b [16]byte //@ used("b", true) 5 6 type t1 struct{} //@ used("t1", true) 7 type t2 struct{} //@ used("t2", true) 8 type t3 struct{} //@ used("t3", true) 9 type t4 struct{} //@ used("t4", true) 10 type t5 struct{} //@ used("t5", true) 11 12 type iface interface{} //@ used("iface", true) 13 14 var x t1 //@ used("x", true) 15 var y = t2{} //@ used("y", true) 16 var j = t3{} //@ used("j", true) 17 var k = t4{} //@ used("k", true) 18 var l iface = t5{} //@ used("l", true) 19 20 func Fn() { //@ used("Fn", true) 21 println(a) 22 _ = b[:] 23 24 _ = x 25 _ = y 26 _ = j 27 _ = k 28 _ = l 29 }