Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelegateAnnotation ¶
type DelegateAnnotation struct { AssemblyName string TypeName string MethodName string Params []DelegateParam Returns []DelegateReturn *ast.FuncDecl *Input }
DelegateAnnotation contains parameters required for generating delegate code
func (DelegateAnnotation) Render ¶
func (d DelegateAnnotation) Render() string
Render compiles the template using the available info. TODO: avoid dup code when matching types
type DelegateParam ¶
type DelegateParam struct { Name string Type DelegateType }
DelegateParam contains information about a function param.
type DelegateReturn ¶
type DelegateReturn struct { Name string Type DelegateType }
DelegateReturn contains information about a function return value.
type DelegateType ¶
type DelegateType int
DelegateType is used by the code generator to guess equivalent types.
const (
// DelegateIntParam represents the int type.
DelegateIntParam DelegateType
)
func (DelegateType) CGoWrap ¶
func (d DelegateType) CGoWrap() (t string)
CGoWrap returns the appropriate CGO wrap.
func (DelegateType) CType ¶
func (d DelegateType) CType() (t string)
CType returns the appropriate C type.
func (DelegateType) GoType ¶
func (d DelegateType) GoType() (t string)
GoType returns the appropriate Golang type.
func (DelegateType) GoWrap ¶
func (d DelegateType) GoWrap() (t string)
GoWrap returns the appropriate Go wrap.
type Generator ¶
Generator generates code for interoperability between Go and .NET.
Click to show internal directories.
Click to hide internal directories.