Directories
¶
| Path | Synopsis |
|---|---|
|
Package appstartup holds identities shared by native backends and packaging without linking the runtime into the build tool.
|
Package appstartup holds identities shared by native backends and packaging without linking the runtime into the build tool. |
|
Package audiosession holds iOS's one AVAudioSession for every part of NSGo that sets it: videos, the audio package's players and sounds, speech and microphone.
|
Package audiosession holds iOS's one AVAudioSession for every part of NSGo that sets it: videos, the audio package's players and sounds, speech and microphone. |
|
Package automation is the protocol between the nsgo tool and an app `nsgo dev -automation` built: the tool sends a Request and the app's agent (package nsgotest) answers it.
|
Package automation is the protocol between the nsgo tool and an app `nsgo dev -automation` built: the tool sends a Request and the app's agent (package nsgotest) answers it. |
|
Package backend runs an app on the platform it is built for, which build tags pick (run_*.go, view_*.go): what nsgo.Run and nsgo.NewView do once they have gathered their options.
|
Package backend runs an app on the platform it is built for, which build tags pick (run_*.go, view_*.go): what nsgo.Run and nsgo.NewView do once they have gathered their options. |
|
Package cldr formats dates and times by the Unicode CLDR's data, as ICU and Intl write them, and transforms messages for the pseudo locales, for package i18n.
|
Package cldr formats dates and times by the Unicode CLDR's data, as ICU and Intl write them, and transforms messages for the pseudo locales, for package i18n. |
|
internal/gen
command
Command gen writes tables.go, the data of the Unicode CLDR package cldr formats dates with, from a pinned release of cldr-json: go generate ./internal/cldr runs it.
|
Command gen writes tables.go, the data of the Unicode CLDR package cldr formats dates with, from a pinned release of cldr-json: go generate ./internal/cldr runs it. |
|
Package crashreport keeps crash traces under an app's logs directory.
|
Package crashreport keeps crash traces under an app's logs directory. |
|
locales
Package locales says the words the development client shows over an app.
|
Package locales says the words the development client shows over an app. |
|
Package devtools is what nsgo dev -devtools and -automation read from a running app and send it: core registers each surface's tree here while Enabled, and nsgo's dev client serves them to the DevTools page and hands them to the automation's Agent, over one channel.
|
Package devtools is what nsgo dev -devtools and -automation read from a running app and send it: core registers each surface's tree here while Enabled, and nsgo's dev client serves them to the DevTools page and hands them to the automation's Agent, over one channel. |
|
Package driver is the protocol between core and the platform backends: the mount items a commit sends, the events backends report, the TextEngine they implement, and the values both sides share.
|
Package driver is the protocol between core and the platform backends: the mount items a commit sends, the events backends report, the TextEngine they implement, and the values both sides share. |
|
gen
command
Command gen writes kindnames_gen.go: the name of every view, item, event and drawing kind, so a log says ItemModal rather than 20.
|
Command gen writes kindnames_gen.go: the name of every view, item, event and drawing kind, so a log says ItemModal rather than 20. |
|
Package engine runs an app on a goroutine of its own and hands the platform one MountBatch per commit.
|
Package engine runs an app on a goroutine of its own and hands the platform one MountBatch per commit. |
|
Package layout is NSGo's layout engine: a Go reimplementation of the CSS layout algorithms of Taffy 0.15 with the features NSH enables (block, flexbox, grid and content sizes; no floats, no calc(), no balanced flex wrapping).
|
Package layout is NSGo's layout engine: a Go reimplementation of the CSS layout algorithms of Taffy 0.15 with the features NSH enables (block, flexbox, grid and content sizes; no floats, no calc(), no balanced flex wrapping). |
|
Package mimeinfo holds the fixed extension table shared by file pickers and packaging.
|
Package mimeinfo holds the fixed extension table shared by file pickers and packaging. |
|
Package moduletest holds the tests that check the whole module rather than one package: its import layers (layering_test.go), what apps link (linked_test.go), the public API's types (api_test.go), that base reads no theme (theme_test.go), that Objective-C blocks go through internal/platform/objcblock (blocks_test.go) and the skills it gives coding agents (skills_test.go).
|
Package moduletest holds the tests that check the whole module rather than one package: its import layers (layering_test.go), what apps link (linked_test.go), the public API's types (api_test.go), that base reads no theme (theme_test.go), that Objective-C blocks go through internal/platform/objcblock (blocks_test.go) and the skills it gives coding agents (skills_test.go). |
|
platform
|
|
|
android/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. |
|
appimage
Package appimage identifies the AppImage an executable is running from.
|
Package appimage identifies the AppImage an executable is running from. |
|
apple
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. |
|
applelog
Package applelog sends Apple's packaged-app diagnostics to the unified log.
|
Package applelog sends Apple's packaged-app diagnostics to the unified log. |
|
authscheme
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. |
|
canvas2d
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. |
|
canvasmesh
Package canvasmesh plays triangle meshes for canvas contexts without textured vertices.
|
Package canvasmesh plays triangle meshes for canvas contexts without textured vertices. |
|
canvastest
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. |
|
codescan
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. |
|
field
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. |
|
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 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. |
|
fontfile
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. |
|
hover
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. |
|
imagedecode
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. |
|
imageload
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. |
|
imageload/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. |
|
knownfolder
Package knownfolder reads Windows' known folders, for the backends that run there.
|
Package knownfolder reads Windows' known folders, for the backends that run there. |
|
linux
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. |
|
loopback
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. |
|
macos
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. |
|
menuspeech
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. |
|
menutext
Package menutext says the labels of the menu items the backends show.
|
Package menutext says the labels of the menu items the backends show. |
|
objcblock
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. |
|
ops
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. |
|
pcmoutput
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. |
|
perfhud
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. |
|
picked
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. |
|
privacy
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. |
|
queue
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. |
|
scrollbar
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. |
|
shareinbox
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. |
|
speechd
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. |
|
textruns
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. |
|
textselect
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. |
|
tui
Package tui draws NSGo's mount protocol into a terminal's cells.
|
Package tui draws NSGo's mount protocol into a terminal's cells. |
|
updates
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. |
|
videoalpha
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. |
|
videoalpha/clips
Package clips holds the tiny video files the backends' tests play.
|
Package clips holds the tiny video files the backends' tests play. |
|
videoplay
Package videoplay tracks app and platform ownership of a video’s playback.
|
Package videoplay tracks app and platform ownership of a video’s playback. |
|
viewtree
Package viewtree traverses the self-drawn view trees on Windows and Linux.
|
Package viewtree traverses the self-drawn view trees on Windows and Linux. |
|
webstyle
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. |
|
Package restart starts a desktop app again once it has exited, for desktop.Restart, and keeps an app that restarts as it launches from doing so forever.
|
Package restart starts a desktop app again once it has exited, for desktop.Restart, and keeps an app that restarts as it launches from doing so forever. |
|
Package shader compiles shaders written in Go's syntax into the intermediate representation of package shaderir, which its backends translate for each platform's GPU API.
|
Package shader compiles shaders written in Go's syntax into the intermediate representation of package shaderir, which its backends translate for each platform's GPU API. |
|
wgsl
Package wgsl compiles the shaders TSX apps write in WGSL, as NSH's are, into package shaderir's programs, which every backend draws as it draws a Kage program (package shader).
|
Package wgsl compiles the shaders TSX apps write in WGSL, as NSH's are, into package shaderir's programs, which every backend draws as it draws a Kage program (package shader). |
|
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). |
|
wgsl
Package wgsl writes validated WGSL source from a shaderir.Program for the WebGPU backend (docs/architecture/gpu.md).
|
Package wgsl writes validated WGSL source from a shaderir.Program for the WebGPU backend (docs/architecture/gpu.md). |
|
Package testhost is where a backend built for `nsgo test -target` (the nsgotest build tag) offers its test host, and where nsgotest finds it: the platform's loop on the main thread, an app shown on a real surface, and native input at the surface's points.
|
Package testhost is where a backend built for `nsgo test -target` (the nsgotest build tag) offers its test host, and where nsgotest finds it: the platform's loop on the main thread, an app shown on a real surface, and native input at the surface's points. |
|
Package woff unpacks WOFF and WOFF2 font files into the TrueType or OpenType data they hold, which every platform's text engine registers.
|
Package woff unpacks WOFF and WOFF2 font files into the TrueType or OpenType data they hold, which every platform's text engine registers. |
Click to show internal directories.
Click to hide internal directories.