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.
|
package gogen
|
|
|
|
import "go/ast"
|
|
|
|
type Dotted struct {
|
|
Receiver Expression
|
|
Name string
|
|
}
|
|
|
|
func (me Dotted) Expression() ast.Expr {
|
|
return &ast.SelectorExpr{
|
|
X: me.Receiver.Expression(),
|
|
Sel: &ast.Ident{
|
|
Name: me.Name,
|
|
},
|
|
}
|
|
}
|
|
|