Documentation
¶
Rendered for darwin/amd64
Overview ¶
Package idiomatic emits fluent Go wrapper types for ObjC frameworks.
For each ObjC class the emitter generates a Go wrapper struct exposing:
- A constructor that bundles alloc+init (or +new) into a single call, converting NSURL/NSString parameters to Go string at the boundary.
- Fluent With<Prop>(value) *Self methods for every settable property, returning the receiver so calls can be chained.
- NSArray setters exposed as variadic With<Prop>(items...*T) *Self, building the NSArray from a Go slice internally.
- Async completion handler methods as (ctx context.Context) error, extracting NSError from unsafe.Pointer via ObjC metadata.
- NSArray-returning getter methods as typed Go slices ([]T).
- BoolNSError pairs simplified to plain error returns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmitFrameworkWrappers ¶
func EmitFrameworkWrappers( outDir, pkgName, rawPkgAlias, rawPkgPath string, fw *meta.FrameworkMeta, m *typemap.Mapper, ) error
EmitFrameworkWrappers generates one *_generated.go file per ObjC class in fw.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.