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

     1  package main
     2  
     3  func Fn1() {} //@ used("Fn1", true)
     4  func Fn2() {} //@ used("Fn2", true)
     5  func fn3() {} //@ used("fn3", false)
     6  
     7  const X = 1 //@ used("X", true)
     8  
     9  var Y = 2 //@ used("Y", true)
    10  
    11  type Z struct{} //@ used("Z", true)
    12  
    13  func main() { //@ used("main", true)
    14  	Fn1()
    15  }