github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/unused/testdata/src/example.com/methods/methods.go (about) 1 package pkg 2 3 type t1 struct{} //@ used("t1", true) 4 type t2 struct { //@ used("t2", true) 5 t3 //@ used("t3", true) 6 } 7 type t3 struct{} //@ used("t3", true) 8 9 func (t1) Foo() {} //@ used("Foo", true) 10 func (t3) Foo() {} //@ used("Foo", true) 11 func (t3) foo() {} //@ used("foo", false) 12 13 func init() { //@ used("init", true) 14 _ = t1{} 15 _ = t2{} 16 }