github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/unused/testdata/src/example.com/unused-argument/unused-argument.go (about) 1 package main 2 3 type t1 struct{} //@ used("t1", true) 4 type t2 struct{} //@ used("t2", true) 5 6 func (t1) foo(arg *t2) {} //@ used("foo", true), used("arg", true) 7 8 func init() { //@ used("init", true) 9 t1{}.foo(nil) 10 }