objptr

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package objptr holds the minimal "carries an Objective-C / C pointer" interface shared by generated wrapper and protocol types. It is pure Go (no cgo), so purego-backed library packages can embed it without pulling the cgo runtime — and therefore build under CGO_ENABLED=0. The cgo runtime aliases its Object to this one, so the two are the same type and cgo-backed and purego-backed packages interoperate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object interface {
	Ptr() unsafe.Pointer
}

Object is the constraint satisfied by every generated ObjC/C wrapper type: it exposes the underlying pointer.

Jump to

Keyboard shortcuts

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