github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/unused/testdata/src/example.com/embedded_call/embedded_call.go (about) 1 package pkg 2 3 var t1 struct { //@ used("t1", true) 4 t2 //@ used("t2", true) 5 t3 //@ used("t3", true) 6 t4 //@ used("t4", true) 7 } 8 9 type t2 struct{} //@ used("t2", true) 10 type t3 struct{} //@ used("t3", true) 11 type t4 struct { //@ used("t4", true) 12 t5 //@ used("t5", true) 13 } 14 type t5 struct{} //@ used("t5", true) 15 16 func (t2) foo() {} //@ used("foo", true) 17 func (t3) bar() {} //@ used("bar", true) 18 func (t5) baz() {} //@ used("baz", true) 19 func init() { //@ used("init", true) 20 t1.foo() 21 _ = t1.bar 22 t1.baz() 23 }