Directories
¶
| Path | Synopsis |
|---|---|
|
runtime
Package runtime holds the prebuilt parts of every APK: the Java runtime in ../java, compiled to dex, and the manifest nsgo build fills in for each app; and the same runtime as a jar, for the libraries nsgo build -embed makes.
|
Package runtime holds the prebuilt parts of every APK: the Java runtime in ../java, compiled to dex, and the manifest nsgo build fills in for each app; and the same runtime as a jar, for the libraries nsgo build -embed makes. |
|
Package appimage identifies the AppImage an executable is running from.
|
Package appimage identifies the AppImage an executable is running from. |
|
Package apple holds what the AppKit and UIKit backends share, called through purego without cgo: CoreFoundation strings, CoreGraphics colors and canvases, layer styles and transitions, the CoreText text engine, which prepares and lays text out on the engine goroutine for the main thread to draw, and image views, which load and decode off it.
|
Package apple holds what the AppKit and UIKit backends share, called through purego without cgo: CoreFoundation strings, CoreGraphics colors and canvases, layer styles and transitions, the CoreText text engine, which prepares and lays text out on the engine goroutine for the main thread to draw, and image views, which load and decode off it. |
|
Package applelog sends Apple's packaged-app diagnostics to the unified log.
|
Package applelog sends Apple's packaged-app diagnostics to the unified log. |
|
Package authscheme opens desktop sign-in sessions whose private callback scheme the app registers.
|
Package authscheme opens desktop sign-in sessions whose private callback scheme the app registers. |
|
Package canvas2d plays NSGo's drawings into a canvas's 2D context over syscall/js: a browser's <canvas> on the web, and a WeChat mini program's offscreen canvas, which has the same context.
|
Package canvas2d plays NSGo's drawings into a canvas's 2D context over syscall/js: a browser's <canvas> on the web, and a WeChat mini program's offscreen canvas, which has the same context. |
|
Package canvasmesh plays triangle meshes for canvas contexts without textured vertices.
|
Package canvasmesh plays triangle meshes for canvas contexts without textured vertices. |
|
Package canvastest holds drawings that exercise a canvas player, and what their pixels must show, so each backend's tests check their player the same way: they draw each Sample on white at twice its points and run its probes.
|
Package canvastest holds drawings that exercise a canvas player, and what their pixels must show, so each backend's tests check their player the same way: they draw each Sample on white at twice its points and run its probes. |
|
Package codescan reads QR codes and barcodes from a camera's frames in Go, for the platforms whose system reads none (Android, Windows and Linux): a frame's luminance, its Y plane or converted from BGRA, goes in and the first code of the kinds a driver.ScanRequest asks for comes out.
|
Package codescan reads QR codes and barcodes from a camera's frames in Go, for the platforms whose system reads none (Android, Windows and Linux): a frame's luminance, its Y plane or converted from BGRA, goes in and the first code of the kinds a driver.ScanRequest asks for comes out. |
|
Package field keeps what a backend reports about one text field the way NSH's platforms do, whatever control edits it: the user's edits and their count, a composition and the value the app sets during one, the selection, keys and maxLength.
|
Package field keeps what a backend reports about one text field the way NSH's platforms do, whatever control edits it: the user's edits and their count, a composition and the value the app sets during one, the selection, keys and maxLength. |
|
Package finger reports the fingers of core.EventTouch for the desktop backends: a mouse's primary button is finger 0, going down, moving while down and going up, and each touch of a touchscreen is a finger of its own, numbered from 1 while it is down, as iOS, Android and the web report every finger.
|
Package finger reports the fingers of core.EventTouch for the desktop backends: a mouse's primary button is finger 0, going down, moving while down and going up, and each touch of a touchscreen is a finger of its own, numbered from 1 while it is down, as iOS, Android and the web report every finger. |
|
Package fontfile reads what the backends need to register an app's font files: the family, weight and slant of each face in a TrueType, OpenType or collection file, from its name and OS/2 tables.
|
Package fontfile reads what the backends need to register an app's font files: the family, weight and slant of each face in a TrueType, OpenType or collection file, from its name and OS/2 tables. |
|
Package hover follows the pointer over views for the backends whose views hear no hovers of their own, Windows' and Linux's.
|
Package hover follows the pointer over views for the backends whose views hear no hovers of their own, Windows' and Linux's. |
|
Package imagedecode decodes image bytes into premultiplied pixels for the backends that decode images themselves: PNG, JPEG, GIF and WebP, animated GIF and WebP with every frame composited, and SVG drawn by a rasterizer of its own from core.ParseSVG's drawing, as NSH's svg module draws with resvg.
|
Package imagedecode decodes image bytes into premultiplied pixels for the backends that decode images themselves: PNG, JPEG, GIF and WebP, animated GIF and WebP with every frame composited, and SVG drawn by a rasterizer of its own from core.ParseSVG's drawing, as NSH's svg module draws with resvg. |
|
Package imageload fetches image bytes for the native backends: https and http, file paths and file: URIs, data: URIs, "asset:" paths under the app's resources and bytes the app holds.
|
Package imageload fetches image bytes for the native backends: https and http, file paths and file: URIs, data: URIs, "asset:" paths under the app's resources and bytes the app holds. |
|
imageloadtest
Package imageloadtest checks a backend's imageload.HTTP against a local server, so each backend's tests hold its system client to the same behavior: status, headers both ways, the body, progress and cancelling.
|
Package imageloadtest checks a backend's imageload.HTTP against a local server, so each backend's tests hold its system client to the same behavior: status, headers both ways, the body, progress and cancelling. |
|
Package knownfolder reads Windows' known folders, for the backends that run there.
|
Package knownfolder reads Windows' known folders, for the backends that run there. |
|
Package linux is NSGo's GTK 4 backend, on NSH's Linux design: every view is a widget of its own (NsgoView, a GtkWidget subclass) that its parent places at the core's frame and that draws itself with GtkSnapshot and Cairo, text the engine measured and laid out with Pango included.
|
Package linux is NSGo's GTK 4 backend, on NSH's Linux design: every view is a widget of its own (NsgoView, a GtkWidget subclass) that its parent places at the core's frame and that draws itself with GtkSnapshot and Cairo, text the engine measured and laid out with Pango included. |
|
Package loopback serves the redirects of the auth sessions desktops open in the default browser (driver.ItemAuthSession), on a loopback address as RFC 8252 section 7.3 asks: a listener on 127.0.0.1 at a port the system picks, taking one callback.
|
Package loopback serves the redirects of the auth sessions desktops open in the default browser (driver.ItemAuthSession), on a loopback address as RFC 8252 section 7.3 asks: a listener on 127.0.0.1 at a port the system picks, taking one callback. |
|
Package macos is NSGo's AppKit backend: one flipped, layer-backed NSView per node, styled through its CALayer, with text the engine laid out with CoreText drawn on the main thread and images decoded off it, and an optional NSVisualEffectView material behind the window's content.
|
Package macos is NSGo's AppKit backend: one flipped, layer-backed NSView per node, styled through its CALayer, with text the engine laid out with CoreText drawn on the main thread and images decoded off it, and an optional NSVisualEffectView material behind the window's content. |
|
Package menuspeech holds what the desktop backends' Speech menus share to read a focused web view.
|
Package menuspeech holds what the desktop backends' Speech menus share to read a focused web view. |
|
Package menutext says the labels of the menu items the backends show.
|
Package menutext says the labels of the menu items the backends show. |
|
Package objcblock creates Objective-C blocks whose storage remains valid across Go stack moves and garbage collection.
|
Package objcblock creates Objective-C blocks whose storage remains valid across Go stack moves and garbage collection. |
|
Package ops writes a commit's operations as JSON for a host that draws them: an array of arrays, each led by its code and the view's ID.
|
Package ops writes a commit's operations as JSON for a host that draws them: an array of arrays, each led by its code and the view's ID. |
|
Package pcmoutput drives pull-based PCM playback over a frame-oriented audio device such as Linux ALSA.
|
Package pcmoutput drives pull-based PCM playback over a frame-oriented audio device such as Linux ALSA. |
|
Package perfhud holds what the backends' performance panels share: the process' CPU and memory use (engine.ProcessSample) and, on Apple platforms, drawing the trace.
|
Package perfhud holds what the backends' performance panels share: the process' CPU and memory use (engine.ProcessSample) and, on Apple platforms, drawing the trace. |
|
Package picked prepares the images a user picked as a PickRequest asks, in pure Go, for the backends whose pickers hand over files as they are: Windows and Linux.
|
Package picked prepares the images a user picked as a PickRequest asks, in pure Go, for the backends whose pickers hand over files as they are: Windows and Linux. |
|
Package privacy tells and asks for the permissions Apple's systems keep for the user (TCC): the macOS and iOS backends answer core's permission requests with it, and the microphone package, speech recognition and iOS's photo taking ask through it, so each permission has one implementation.
|
Package privacy tells and asks for the permissions Apple's systems keep for the user (TCC): the macOS and iOS backends answer core's permission requests with it, and the microphone package, speech recognition and iOS's photo taking ask through it, so each permission has one implementation. |
|
Package queue hands mount batches from the engine goroutine to a platform's main thread.
|
Package queue hands mount batches from the engine goroutine to a platform's main thread. |
|
Package scrollbar is the scroll logic of the backends that keep scroll offsets of their own: where a scroll view's thumb is, whether a point is on its bar, and where dragging the thumb scrolls to; the offsets its content inset allows; and where a snapping view settles after a wheel or a thumb drag.
|
Package scrollbar is the scroll logic of the backends that keep scroll offsets of their own: where a scroll view's thumb is, whether a point is on its bar, and where dragging the thumb scrolls to; the offsets its content inset allows; and where a snapping view settles after a wheel or a thumb drag. |
|
Package shareinbox stages iOS share-extension items in an App Group until the containing app next activates.
|
Package shareinbox stages iOS share-extension items in an App Group until the containing app next activates. |
|
Package speechd speaks text through speech-dispatcher, Linux's speech service, for core's Speak: a client of its SSIP protocol over the socket the daemon listens on, written in Go as the protocol is lines of text, so the backend loads no libspeechd.
|
Package speechd speaks text through speech-dispatcher, Linux's speech service, for core's Speak: a client of its SSIP protocol over the socket the daemon listens on, written in Go as the protocol is lines of text, so the backend loads no libspeechd. |
|
Package textruns splits a text at its spans' byte offsets, so a backend that draws a text span by span sees the bytes, style and link of each run.
|
Package textruns splits a text at its spans' byte offsets, so a backend that draws a text span by span sees the bytes, style and link of each run. |
|
Package textselect is what the Windows and Linux backends share of a selection across the texts of an area (driver.SelectionModel): the texts as the model reads them, hit-tested through their layouts.
|
Package textselect is what the Windows and Linux backends share of a selection across the texts of an area (driver.SelectionModel): the texts as the model reads them, hit-tested through their layouts. |
|
Package tui draws NSGo's mount protocol into a terminal's cells.
|
Package tui draws NSGo's mount protocol into a terminal's cells. |
|
Package updates finds a newer version of the app for the backends whose platforms have no updater of their own (updater.Check): in the app's appcast, the RSS feed in Sparkle's format that nsgo build writes, on Linux and Android, and in the App Store on iOS.
|
Package updates finds a newer version of the app for the backends whose platforms have no updater of their own (updater.Check): in the app's appcast, the RSS feed in Sparkle's format that nsgo build writes, on Linux and Android, and in the App Store on iOS. |
|
Package videoalpha reads whether a video file declares an alpha channel, for the backends whose players do not say so before they draw: VP8 and VP9 in Matroska or WebM with the track's AlphaMode set, and HEVC whose decoder configuration carries the alpha channel information SEI, as Apple's HEVC with alpha has it.
|
Package videoalpha reads whether a video file declares an alpha channel, for the backends whose players do not say so before they draw: VP8 and VP9 in Matroska or WebM with the track's AlphaMode set, and HEVC whose decoder configuration carries the alpha channel information SEI, as Apple's HEVC with alpha has it. |
|
clips
Package clips holds the tiny video files the backends' tests play.
|
Package clips holds the tiny video files the backends' tests play. |
|
Package videoplay tracks app and platform ownership of a video’s playback.
|
Package videoplay tracks app and platform ownership of a video’s playback. |
|
Package viewtree traverses the self-drawn view trees on Windows and Linux.
|
Package viewtree traverses the self-drawn view trees on Windows and Linux. |
|
Package webstyle writes NSGo's styles as CSS, for the backends that draw with a browser's engine: the web and WeChat mini programs, whose render layer is a web view.
|
Package webstyle writes NSGo's styles as CSS, for the backends that draw with a browser's engine: the web and WeChat mini programs, whose render layer is a web view. |
Click to show internal directories.
Click to hide internal directories.