github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/x/pkgx/__tests__/ast.go (about)

     1  package main
     2  
     3  import "context"
     4  
     5  // Foo 结构体
     6  type Foo struct {
     7  	i int
     8  }
     9  
    10  // Bar 接口
    11  type Bar interface {
    12  	Do(ctx context.Context) error
    13  }
    14  
    15  // main方法
    16  func main() {
    17  	_ = 1
    18  }