Versions in this module Expand all Collapse all v1 v1.21.0 Dec 26, 2023 Changes in this version + type Call struct + Call *ast.CallExpr + Deferred bool + Done bool + type ExpFunc struct + Doc string + ExpName string + Func *ast.FuncDecl + type File struct + AST *ast.File + Calls []*Call + Comments []*ast.CommentGroup + Edit *edit.Buffer + ExpFunc []*ExpFunc + Name map[string]*Name + NamePos map[*Name]token.Pos + Package string + Preamble string + Ref []*Ref + func (f *File) DiscardCgoDirectives() + func (f *File) ParseGo(abspath string, src []byte) + type FuncType struct + Go *ast.FuncType + Params []*Type + Result *Type + type Name struct + AddError bool + C string + Const string + Define string + FuncType *FuncType + Go string + Kind string + Mangle string + Type *Type + func (n *Name) IsConst() bool + func (n *Name) IsVar() bool + type Package struct + CgoFlags map[string][]string + Decl []ast.Decl + ExpFunc []*ExpFunc + GccFiles []string + GccIsClang bool + GccOptions []string + GoFiles []string + IntSize int64 + Name map[string]*Name + PackageName string + PackagePath string + Preamble string + PtrSize int64 + Written map[string]bool + func (p *Package) Record(f *File) + func (p *Package) Translate(f *File) + type Ref struct + Context astContext + Done bool + Expr *ast.Expr + Name *Name + func (r *Ref) Pos() token.Pos + type Type struct + Align int64 + BadPointer bool + C *TypeRepr + EnumValues map[string]int64 + Go ast.Expr + Size int64 + Typedef string + type TypeRepr struct + FormatArgs []interface{} + Repr string + func (tr *TypeRepr) Empty() bool + func (tr *TypeRepr) Set(repr string, fargs ...interface{}) + func (tr *TypeRepr) String() string