internal/

directory
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT

Directories

Path Synopsis
Package accelerator parses Electron style keyboard accelerators such as "CmdOrCtrl+Shift+Z" into a platform neutral representation.
Package accelerator parses Electron style keyboard accelerators such as "CmdOrCtrl+Shift+Z" into a platform neutral representation.
Package bridge embeds the renderer runtime that Golet injects into pages.
Package bridge embeds the renderer runtime that Golet injects into pages.
Package contentrules matches loads against rules in WebKit's content blocker format, for the backends whose engine has no content blockers (WebView2).
Package contentrules matches loads against rules in WebKit's content blocker format, for the backends whose engine has no content blockers (WebView2).
Package darwin implements the macOS backend (AppKit + WKWebView) in pure Go: Objective-C is driven through the runtime with purego, no cgo.
Package darwin implements the macOS backend (AppKit + WKWebView) in pure Go: Objective-C is driven through the runtime with purego, no cgo.
Package diff compares sequences: the lines of two texts, or the words of two lines.
Package diff compares sequences: the lines of two texts, or the words of two lines.
Package download fetches the files that Golet keeps in the user's cache: the native libraries plugins name in their golet-plugin.json, which the CLI and unpackaged programs download into <cache>/golet/natives/<sha256>/, and the tools the CLI runs, as NSIS.
Package download fetches the files that Golet keeps in the user's cache: the native libraries plugins name in their golet-plugin.json, which the CLI and unpackaged programs download into <cache>/golet/natives/<sha256>/, and the tools the CLI runs, as NSIS.
Package fake is an in-memory platform.Backend for testing the public API without a GUI.
Package fake is an in-memory platform.Backend for testing the public API without a GUI.
Package gamut converts between sRGB, Display P3, Oklab and Oklch, and maps colors into a display's gamut as CSS Color 4 does.
Package gamut converts between sRGB, Display P3, Oklab and Oklch, and maps colors into a display's gamut as CSS Color 4 does.
gpu
Package gpu turns scenes into what the GPU renderers draw: one instanced quad per operation, for a shader that computes rounded rectangles, borders, gradients, stripes, shadows and atlas coverage itself, in batches that share a scissor rectangle and an image.
Package gpu turns scenes into what the GPU renderers draw: one instanced quad per operation, for a shader that computes rounded rectangles, borders, gradients, stripes, shadows and atlas coverage itself, in batches that share a scissor rectangle and an image.
d3d11
Package d3d11 draws scenes with Direct3D 11 into a window through a DXGI flip model swap chain, called through syscall like the rest of the Windows backend (no cgo).
Package d3d11 draws scenes with Direct3D 11 into a window through a DXGI flip model swap chain, called through syscall like the rest of the Windows backend (no cgo).
d3d11/device
Package device creates Direct3D 11 devices: the device of package d3d11's renderer, and that of the Windows backend, which shows the controls of windows with a material through DirectComposition without the renderer.
Package device creates Direct3D 11 devices: the device of package d3d11's renderer, and that of the Windows backend, which shows the controls of windows with a material through DirectComposition without the renderer.
gl
Package gl draws scenes with OpenGL 3.3, OpenGL ES 3.0 or WebGL 2 into the framebuffer bound when Render is called: the one GTK's GtkGLArea binds while it emits its render signal, or a canvas's (package web).
Package gl draws scenes with OpenGL 3.3, OpenGL ES 3.0 or WebGL 2 into the framebuffer bound when Render is called: the one GTK's GtkGLArea binds while it emits its render signal, or a canvas's (package web).
gputest
Package gputest has what the tests of the GPU renderers share: a scene that draws every kind of operation, and a comparison of what a renderer drew with what the CPU renderer draws, which the renderers must match.
Package gputest has what the tests of the GPU renderers share: a scene that draws every kind of operation, and a comparison of what a renderer drew with what the CPU renderer draws, which the renderers must match.
metal
Package metal draws scenes with Metal into a CAMetalLayer, called through the Objective-C runtime with purego like the rest of the macOS backend (no cgo).
Package metal draws scenes with Metal into a CAMetalLayer, called through the Objective-C runtime with purego like the rest of the macOS backend (no cgo).
Package i18ngen reads the catalogs of an app's messages, checks them, and writes their typed accessors: Go functions in the catalogs' directory, which embed and register them, and a TypeScript module that formats the same messages in pages with golet-runtime.
Package i18ngen reads the catalogs of an app's messages, checks them, and writes their typed accessors: Go functions in the catalogs' directory, which embed and register them, and a TypeScript module that formats the same messages in pages with golet-runtime.
Package i18nlink hands Golet's own strings (internal/l10n) what package i18n does not export: a library's catalog that does not link the formatting of the dates of messages, which i18n.NewLibraryCatalog does for the catalogs of libraries and apps.
Package i18nlink hands Golet's own strings (internal/l10n) what package i18n does not export: a library's catalog that does not link the formatting of the dates of messages, which i18n.NewLibraryCatalog does for the catalogs of libraries and apps.
Command idlemem launches apps and reports how much memory each takes once idle, alone and with the processes it runs, its webview's: scripts/bench.ts measures release builds of examples/hello and examples/counter-native with it on every push to main.
Command idlemem launches apps and reports how much memory each takes once idle, alone and with the processes it runs, its webview's: scripts/bench.ts measures release builds of examples/hello and examples/counter-native with it on every push to main.
Command inputlatency measures how long input takes to show on screen in native UI on macOS: from when an event arrives to when the frame showing it reaches the display.
Command inputlatency measures how long input takes to show on screen in native UI on macOS: from when an event arrives to when the frame showing it reaches the display.
Package l10n holds Golet's own strings, those of the controls of package ui, of the code editor and the diff viewer, and of the roles of menus, in the languages Golet is translated to: a library's catalog (see i18n.NewLibraryCatalog) of the namespace golet, whose functions say them in the language the app shows.
Package l10n holds Golet's own strings, those of the controls of package ui, of the code editor and the diff viewer, and of the roles of menus, in the languages Golet is translated to: a library's catalog (see i18n.NewLibraryCatalog) of the namespace golet, whose functions say them in the language the app shows.
Package linux implements the Linux backend (GTK 3 + WebKitGTK) in pure Go: the libraries are loaded at run time with purego, no cgo.
Package linux implements the Linux backend (GTK 3 + WebKitGTK) in pure Go: the libraries are loaded at run time with purego, no cgo.
Package nsis pins the NSIS that golet build downloads on Windows to make the installer, and installs it into the user's cache directory, where makensis runs as it does from an installation.
Package nsis pins the NSIS that golet build downloads on Windows to make the installer, and installs it into the user's cache directory, where makensis runs as it does from an installation.
Package platform defines the contract between the public golet API and the native backends (WKWebView on macOS, WebKitGTK on Linux, WebView2 on Windows).
Package platform defines the contract between the public golet API and the native backends (WKWebView on macOS, WebKitGTK on Linux, WebView2 on Windows).
Command prefetch downloads into the user's cache what this repository's tests otherwise download there while they run: the native libraries that the plugins name in their golet-plugin.json, for this platform, and on Windows the NSIS that golet build uses.
Command prefetch downloads into the user's cache what this repository's tests otherwise download there while they run: the native libraries that the plugins name in their golet-plugin.json, for this platform, and on Windows the NSIS that golet build uses.
Package raster draws scenes in memory: the software renderer behind headless rendering, window captures and windows without a GPU renderer.
Package raster draws scenes in memory: the software renderer behind headless rendering, window captures and windows without a GPU renderer.
Package rope stores text as a persistent tree of chunks of UTF-8: an AVL tree whose leaves own up to 4 KB of the text each, and whose nodes sum the bytes, runes, UTF-16 units and newlines below them, as Zed's rope sums its chunks.
Package rope stores text as a persistent tree of chunks of UTF-8: an AVL tree whose leaves own up to 4 KB of the text each, and whose nodes sum the bytes, runes, UTF-16 units and newlines below them, as Zed's rope sums its chunks.
Package scene is the display list the ui package paints a frame into and the renderers draw: rounded rectangles with borders and gradients, box shadows, glyphs from a shared atlas, images, effects and clips, in paint order.
Package scene is the display list the ui package paints a frame into and the renderers draw: rounded rectangles with borders and gradients, box shadows, glyphs from a shared atlas, images, effects and clips, in paint order.
Package shader compiles shaders written in Go's syntax into the intermediate representation of package shaderir, which its backends translate for each GPU renderer.
Package shader compiles shaders written in Go's syntax into the intermediate representation of package shaderir, which its backends translate for each GPU renderer.
Package shaderir offers intermediate representation for shader programs, forked from Ebitengine with package shader (see its documentation).
Package shaderir offers intermediate representation for shader programs, forked from Ebitengine with package shader (see its documentation).
interp
Package interp runs shaders on the CPU, for Golet's CPU renderer: it compiles a program of package shaderir into Go closures, which compute what the GPU renderers' code computes, within the rounding of their floats.
Package interp runs shaders on the CPU, for Golet's CPU renderer: it compiles a program of package shaderir into Go closures, which compute what the GPU renderers' code computes, within the rounding of their floats.
msl
Package surface connects the content of a window that Golet draws itself (package ui) to the window (package golet), without either importing the other's internals.
Package surface connects the content of a window that Golet draws itself (package ui) to the window (package golet), without either importing the other's internals.
Package svg parses SVG documents and draws them into pixels, for the icons and pictures of package ui, in Go alone.
Package svg parses SVG documents and draws them into pixels, for the icons and pictures of package ui, in Go alone.
Package text lays out text and rasterizes glyphs with the system's own text stack: DirectWrite on Windows, Core Text on macOS and Pango with cairo on Linux.
Package text lays out text and rasterizes glyphs with the system's own text stack: DirectWrite on Windows, Core Text on macOS and Pango with cairo on Linux.
Package tsgen generates a typed TypeScript client for Go services bound with golet.Bind and events declared with golet.NewEvent.
Package tsgen generates a typed TypeScript client for Go services bound with golet.Bind and events declared with golet.NewEvent.
internal/fixture
Package fixture declares types used to test the TypeScript generator.
Package fixture declares types used to test the TypeScript generator.
Command uigen generates the checked public UI facade from the private renderer API.
Command uigen generates the checked public UI facade from the private renderer API.
Package uimigrate migrates source syntax to the UI's checked value API.
Package uimigrate migrates source syntax to the UI's checked value API.
Package uivet checks native UI build lifetimes using Go type information.
Package uivet checks native UI build lifetimes using Go type information.
Package unsupported is the backend for platforms without a native implementation.
Package unsupported is the backend for platforms without a native implementation.
Package update holds what the updater of package golet and `golet build` share: the update manifest, signatures, versions, and the formats of archives and delta updates.
Package update holds what the updater of package golet and `golet build` share: the update manifest, signatures, versions, and the formats of archives and delta updates.
Package vec rasterizes vector paths (lines, quadratic and cubic Bézier curves) into anti-aliased coverage masks, with the signed area accumulation of font-rs: every edge adds the area it covers to the cells it crosses, and a running sum along each row gives the coverage.
Package vec rasterizes vector paths (lines, quadratic and cubic Bézier curves) into anti-aliased coverage masks, with the signed area accumulation of font-rs: every edge adds the area it covers to the cells it crosses, and a running sum along each row gives the coverage.
Package wait is how Golet's tests wait for what happens elsewhere: on the main thread, in another goroutine or process, in the window system or the file system.
Package wait is how Golet's tests wait for what happens elsewhere: on the main thread, in another goroutine or process, in the window system or the file system.
Package watchdriver runs the native file watchers of the backends on one goroutine each: the goroutine owns the system's handles, adds and removes targets between waits, and reports what the system tells it.
Package watchdriver runs the native file watchers of the backends on one goroutine each: the goroutine owns the system's handles, adds and removes targets between waits, and reports what the system tells it.
Package web is the backend for browsers (GOOS=js, GOARCH=wasm): windows showing content Golet draws itself (package ui) on canvases of the page, drawn with WebGL 2 by the GL renderer (package gl), or in memory where the browser has no WebGL 2.
Package web is the backend for browsers (GOOS=js, GOARCH=wasm): windows showing content Golet draws itself (package ui) on canvases of the page, drawn with WebGL 2 by the GL renderer (package gl), or in memory where the browser has no WebGL 2.
Package webview2 finds the Microsoft Edge WebView2 Runtime as WebView2Loader.dll does.
Package webview2 finds the Microsoft Edge WebView2 Runtime as WebView2Loader.dll does.
Package windows implements the Golet backend for Windows: Win32 windows hosting WebView2, called through the syscall package (no cgo).
Package windows implements the Golet backend for Windows: Win32 windows hosting WebView2, called through the syscall package (no cgo).

Jump to

Keyboard shortcuts

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