internal/

directory
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 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 automationcli is golet-automation, the command line client of plugins/automation's socket made for agents: compact snapshots of a window's elements with short refs, actions on them, and diffs of what the window shows once it settled.
Package automationcli is golet-automation, the command line client of plugins/automation's socket made for agents: compact snapshots of a window's elements with short refs, actions on them, and diffs of what the window shows once it settled.
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.
Package imagesrc seals ui.ImageSource: the pictures ui.Image shows are package ui's bitmaps and SVGs, and Frames, the textures of native modules (internal/texture), which embed Mark.
Package imagesrc seals ui.ImageSource: the pictures ui.Image shows are package ui's bitmaps and SVGs, and Frames, the textures of native modules (internal/texture), which embed Mark.
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 media is the contract between ui's VideoPlayer and the engines that play video with the system's media frameworks (package ui/video): AVFoundation on macOS, Media Foundation on Windows, GStreamer on Linux and the video element in browsers.
Package media is the contract between ui's VideoPlayer and the engines that play video with the system's media frameworks (package ui/video): AVFoundation on macOS, Media Foundation on Windows, GStreamer on Linux and the video element in browsers.
mediatest
Package mediatest runs the tests of packages that play video with the system's media framework (package ui/video) as an app runs: on macOS while the main thread runs its run loop, for AVFoundation, which loads and plays a video through the main queue.
Package mediatest runs the tests of packages that play video with the system's media framework (package ui/video) as an app runs: on macOS while the main thread runs its run loop, for AVFoundation, which loads and plays a video through the main queue.
Package menuicon turns the PNG images of menu items into the pixels a backend that draws them itself needs: premultiplied BGRA, as Windows' 32-bit DIB sections (PARGB) take them, scaled to the menu's size.
Package menuicon turns the PNG images of menu items into the pixels a backend that draws them itself needs: premultiplied BGRA, as Windows' 32-bit DIB sections (PARGB) take them, scaled to the menu's size.
Package nativegen reads the Go side of a native module, an interface that a platform's own language implements, and writes what each side needs from it: the Go constructors and proxies (<package>_native.go), and for Apple's platforms the Swift protocols, types and the @_cdecl functions Go calls (<Module>.golet.swift).
Package nativegen reads the Go side of a native module, an interface that a platform's own language implements, and writes what each side needs from it: the Go constructors and proxies (<package>_native.go), and for Apple's platforms the Swift protocols, types and the @_cdecl functions Go calls (<Module>.golet.swift).
Package nativelib is what the CLI and packages ffi and native share about the native libraries that Go packages bind: golet-plugin.json, the file names of libraries on each platform, and where libraries are built and cached.
Package nativelib is what the CLI and packages ffi and native share about the native libraries that Go packages bind: golet-plugin.json, the file names of libraries on each platform, and where libraries are built and cached.
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 pacing tells whether frames of native UI wait for the display.
Package pacing tells whether frames of native UI wait for the display.
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 schemehost maps URLs of the app's custom schemes to the http://*.localhost URLs that serve them where the webview can't load a custom scheme itself (WebView2), and back.
Package schemehost maps URLs of the app's custom schemes to the http://*.localhost URLs that serve them where the webview can't load a custom scheme itself (WebView2), and back.
Package schemestream holds the parts of streaming custom scheme responses to WebView2 that do not need Windows, so that they are tested everywhere: Pipe, which carries a response's body from the goroutine of its handler to the reads of the webview with bounded memory, and ClampRange, which narrows the open ranges media elements ask for.
Package schemestream holds the parts of streaming custom scheme responses to WebView2 that do not need Windows, so that they are tested everywhere: Pipe, which carries a response's body from the goroutine of its handler to the reads of the webview with bounded memory, and ClampRange, which narrows the open ranges media elements ask for.
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 texture is native.Texture: an image on the GPU that a native module's implementation draws into, as IOSurfaces on macOS, and that native UI shows as any image, with no copy through the CPU but for the CPU renderer's.
Package texture is native.Texture: an image on the GPU that a native module's implementation draws into, as IOSurfaces on macOS, and that native UI shows as any image, with no copy through the CPU but for the CPU renderer's.
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 viewhost is how package ui has a window host a view of the platform (ui.NativeView), through a function package native sets as it initializes: apps without a native module link no hosting of views.
Package viewhost is how package ui has a window host a view of the platform (ui.NativeView), through a function package native sets as it initializes: apps without a native module link no hosting of views.
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.

Jump to

Keyboard shortcuts

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