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

     1  package baz
     2  
     3  import "fmt"
     4  
     5  type Foo interface { //@ used("Foo", true)
     6  	bar() //@ used("bar", true)
     7  }
     8  
     9  func Bar(f Foo) { //@ used("Bar", true), used("f", true)
    10  	f.bar()
    11  }
    12  
    13  type Buzz struct{} //@ used("Buzz", true)
    14  
    15  func (b *Buzz) bar() { //@ used("bar", true), used("b", true)
    16  	fmt.Println("foo bar buzz")
    17  }