Documentation
¶
Overview ¶
Package view holds the pure-data IR structs for the idiomatic CGo library emitter (idiolib). No metadata or type-mapping imports — every value is resolved by the gather phase before render.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandleWrapperModel ¶
type HandleWrapperModel struct {
GoName string
Base string
Methods string // pre-rendered wrapper-func method bodies (may be empty)
}
HandleWrapperModel is template data for an opaque C-handle wrapper type with its Wrap adopt-constructor and Ptr accessor, followed by its pre-rendered methods.
type ImportLineModel ¶
ImportLineModel is one import line; Bare omits the alias (path's last element already equals the alias, or alias == path).
type OpinionatedHeaderModel ¶
type OpinionatedHeaderModel struct {
PkgName string
Imports []ImportLineModel
}
OpinionatedHeaderModel is template data for an idiomatic library file header (generated banner, build tag, package clause, and sorted import block).
type WrapperFuncModel ¶
type WrapperFuncModel struct {
RecvPrefix string // "" for a free function, "(h T) " for a method
GoName string
Params string
Call string // raw.Foo(args)
RetKind int
RetType string
}
WrapperFuncModel is template data for one idiomatic forwarding function or method. RetKind matches the idiolib constants: 0 void, 1 plain, 2 error (OSStatus), 3 handle (Wrap).