golang.org/x/tools@v0.21.0/refactor/eg/testdata/G.template (about)

     1  package templates
     2  
     3  import (
     4  	"go/ast" // defines many unencapsulated structs
     5  	"go/token"
     6  )
     7  
     8  func before(from, to token.Pos) ast.BadExpr { return ast.BadExpr{From: from, To: to} }
     9  func after(from, to token.Pos) ast.BadExpr  { return ast.BadExpr{from, to} }