Command gencodec generates marshaling methods for Go struct types.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gencodec/vendor/github.com/garslo/gogen/thunk.go

22 lines
276 B

package gogen
import "go/ast"
type Thunk struct {
Expr ast.Expr
Stmt ast.Stmt
Decl ast.Decl
}
func (me Thunk) Expression() ast.Expr {
return me.Expr
}
func (me Thunk) Statement() ast.Stmt {
return me.Stmt
}
func (me Thunk) Declaration() ast.Decl {
return me.Decl
}