view

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Rendered for darwin/amd64

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

type ImportLineModel struct {
	Alias string
	Path  string
	Bare  bool
}

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL