gen

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package gen emits the C side of the PHP bindings from a surface.Model: the cgo wrapper file compiled into the c-shared library, the FFI-parsable C header, and a JSON manifest describing what was bound and what was not.

Every emitter is a pure function of the model. The same model always yields the same bytes, so the generated files can be committed and a drift check is a byte comparison. Nothing here reads the clock, the filesystem, or the environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CgoFile

func CgoFile(m *surface.Model) ([]byte, error)

CgoFile returns the contents of bindings/php/cshared/exports_gen.go.

func HeaderFile

func HeaderFile(m *surface.Model) ([]byte, error)

HeaderFile returns the contents of bindings/php/encx.h.

func ManifestFile

func ManifestFile(m *surface.Model) ([]byte, error)

ManifestFile returns the contents of bindings/php/bindings.manifest.json.

Types

This section is empty.

Jump to

Keyboard shortcuts

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