internal/

directory
v0.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: Apache-2.0

Directories

Path Synopsis
Package apiref reads the exported API of a Go module's packages from their source and doc comments, as go doc shows it, into a Reference: the JSON the website renders as its API pages and publishes for agents.
Package apiref reads the exported API of a Go module's packages from their source and doc comments, as go doc shows it, into a Reference: the JSON the website renders as its API pages and publishes for agents.
Command ciscope classifies what a pull request changed so CI can skip the heavy steps a documentation-only change cannot affect.
Command ciscope classifies what a pull request changed so CI can skip the heavy steps a documentation-only change cannot affect.
Package csgpoly holds the rules the outline of a CSG polygon must meet.
Package csgpoly holds the rules the outline of a CSG polygon must meet.
Package detmath provides FMA-free deterministic math helpers and canonical state hashing shared by physics, physics3d, and vehicle3d.
Package detmath provides FMA-free deterministic math helpers and canonical state hashing shared by physics, physics3d, and vehicle3d.
Package devimage builds the image sources that asset hot reload hands a running game: an image's bytes read from disk in place of where it was loaded from.
Package devimage builds the image sources that asset hot reload hands a running game: an image's bytes read from disk in place of where it was loaded from.
Package flashcolor implements WCAG 2.3.1 / XAG 118 saturated-red flash desaturation shared by full-screen flashes, sprite flashes, and particle emitters.
Package flashcolor implements WCAG 2.3.1 / XAG 118 saturated-red flash desaturation shared by full-screen flashes, sprite flashes, and particle emitters.
Package formattest checks, in a format package's tests, that a YAML format this repository defines follows the rules in AGENTS.md: it refuses unknown fields and versions it does not support, writes the same bytes every time it saves the same value, and loads and saves each of its testdata files without changing a byte.
Package formattest checks, in a format package's tests, that a YAML format this repository defines follows the rules in AGENTS.md: it refuses unknown fields and versions it does not support, writes the same bytes every time it saves the same value, and loads and saves each of its testdata files without changing a byte.
Package fuzztest provides shared helpers for loader fuzz targets: seed loading from testdata globs, heap allocation bounds against allocation-bomb inputs, and canonical YAML parse/encode round-trip checks.
Package fuzztest provides shared helpers for loader fuzz targets: seed loading from testdata globs, heap allocation bounds against allocation-bomb inputs, and canonical YAML parse/encode round-trip checks.
Package gamecli implements the game layer's command-line tool, shared by cmd/game (for `go tool game`, `go run`, and `nsgo game` inside a module) and cmd/nsgo-game (the `nsgo-game` extension binary on PATH for `nsgo game` outside a module).
Package gamecli implements the game layer's command-line tool, shared by cmd/game (for `go tool game`, `go run`, and `nsgo game` inside a module) and cmd/nsgo-game (the `nsgo-game` extension binary on PATH for `nsgo game` outside a module).
_templates/projects/action3d command
Command mygame is a third-person 3D action adventure built with NSGo and game.
Command mygame is a third-person 3D action adventure built with NSGo and game.
_templates/projects/cards2d command
Command suitladders is a single-player card game built with NSGo and game: climb four suit ladders from 1 to 9 with a hand of five cards, a draw pile and a discard pile that can be dealt again twice.
Command suitladders is a single-player card game built with NSGo and game: climb four suit ladders from 1 to 9 with a hand of five cards, a draw pile and a discard pile that can be dealt again twice.
_templates/projects/coop2d command
Command mygame is a 2D co-op game built with NSGo and game.
Command mygame is a 2D co-op game built with NSGo and game.
_templates/projects/fighting2d command
Command fighting2d is a one-on-one 2D fighting game built with NSGo and game.
Command fighting2d is a one-on-one 2D fighting game built with NSGo and game.
_templates/projects/fps3d command
Command relayyard is a first-person shooter arena built with NSGo and game: clear three waves of drones and wardens with a hitscan rifle and a projectile launcher.
Command relayyard is a first-person shooter arena built with NSGo and game: clear three waves of drones and wardens with a hitscan rifle and a projectile launcher.
_templates/projects/idle command
Command hearthkeeper is an idle game built with NSGo and game: keep a fire fed, buy generators and upgrades with the embers it makes, earn while away, scatter the ashes for a lasting bonus and light the Everflame.
Command hearthkeeper is an idle game built with NSGo and game: keep a fire fed, buy generators and upgrades with the embers it makes, earn while away, scatter the ashes for a lasting bonus and light the Everflame.
_templates/projects/match3 command
Command gemgarden is a match-3 puzzle game built with NSGo and game: swap neighboring gems to make lines of three or more, clear jelly, crates and ice, and collect colors across two packs of levels on a level map.
Command gemgarden is a match-3 puzzle game built with NSGo and game: swap neighboring gems to make lines of three or more, clear jelly, crates and ice, and collect colors across two packs of levels on a level map.
_templates/projects/platformer2d command
Command mygame is a 2D side-scrolling platformer built with NSGo and game.
Command mygame is a 2D side-scrolling platformer built with NSGo and game.
_templates/projects/puzzle2d command
Command sparkslide is a 2D grid puzzle built with NSGo and game: slide a spark across the board to light every lamp in as few moves as you can.
Command sparkslide is a 2D grid puzzle built with NSGo and game: slide a spark across the board to light every lamp in as few moves as you can.
_templates/projects/racing3d command
Command mygame is a 3D racing game built with NSGo and game.
Command mygame is a 3D racing game built with NSGo and game.
_templates/projects/rhythm command
Command pulselanes is a four-lane rhythm game built with NSGo and game: notes fall to the beat of a song, and the player hits them as they reach the line.
Command pulselanes is a four-lane rhythm game built with NSGo and game: notes fall to the beat of a song, and the player hits them as they reach the line.
_templates/projects/roguelike2d command
Command mygame is a turn-based 2D roguelike built with NSGo and game.
Command mygame is a turn-based 2D roguelike built with NSGo and game.
_templates/projects/rpg2d command
Command hollowbrook is a small top-down RPG built with NSGo and game: a town and a meadow to walk, people to talk to, a pack of items and equipment, one quest, turn-based battles and three save slots.
Command hollowbrook is a small top-down RPG built with NSGo and game: a town and a meadow to walk, people to talk to, a pack of items and equipment, one quest, turn-based battles and three save slots.
_templates/projects/rts2d command
Command mygame is a 2D real-time strategy skirmish built with NSGo and game: gather crystals, build barracks, train an army and destroy the opponent's headquarters before it destroys yours.
Command mygame is a 2D real-time strategy skirmish built with NSGo and game: gather crystals, build barracks, train an army and destroy the opponent's headquarters before it destroys yours.
_templates/projects/shmup2d command
Command mygame is a vertical scrolling shooter built with NSGo and game: enemy waves, bullet patterns, power-ups, a boss with phases, lives and a score.
Command mygame is a vertical scrolling shooter built with NSGo and game: enemy waves, bullet patterns, power-ups, a boss with phases, lives and a score.
_templates/projects/starter command
Command mygame is a starter 2D game built with NSGo and game.
Command mygame is a starter 2D game built with NSGo and game.
_templates/projects/tap2d command
Command mygame is a starter 2D game built with NSGo and game.
Command mygame is a starter 2D game built with NSGo and game.
_templates/projects/towerdefense2d command
Command bramblegate is a 2D tower defense game built with NSGo and game: build and upgrade towers beside a road to stop the waves of enemies walking it before they reach the gate.
Command bramblegate is a 2D tower defense game built with NSGo and game: build and upgrade towers beside a road to stop the waves of enemies walking it before they reach the gate.
_templates/projects/visualnovel command
Command mygame is a short branching visual novel built with NSGo and game: two characters, backgrounds, choices that change the ending, a backlog, auto and skip modes, save slots and two languages.
Command mygame is a short branching visual novel built with NSGo and game: two characters, backgrounds, choices that change the ending, a backlog, auto and skip modes, save slots and two languages.
internal/datatablexlsx
Package datatablexlsx reads .xlsx worksheets as raw cell grids for the `game datatable import` CLI subcommand.
Package datatablexlsx reads .xlsx worksheets as raw cell grids for the `game datatable import` CLI subcommand.
Package gotoolchain locates the Go toolchain executable and enriches child process environments when the editor or CLI is launched from a GUI desktop launcher (Finder, Dock, Spotlight, Windows shortcut, or Linux desktop launcher) that inherits only a minimal system PATH.
Package gotoolchain locates the Go toolchain executable and enriches child process environments when the editor or CLI is launched from a GUI desktop launcher (Finder, Dock, Spotlight, Windows shortcut, or Linux desktop launcher) that inherits only a minimal system PATH.
Package jsonedit strictly decodes JSON edits onto live Go values without touching the edited value until the edit has succeeded.
Package jsonedit strictly decodes JSON edits onto live Go values without touching the edited value until the edit has succeeded.
Package l10nkeys extracts localization message key usages from Go source (Localizer.T, Localizer.Plural, Localizer.Format, Catalog.T, Catalog.Plural, Catalog.Format), scenes (*.scene.yaml), screens (*.screen.yaml), cutscenes (*.cutscene.yaml), and data tables (registered or Go struct-tagged `table:"...,textkey"`), and compares them against a project's YAML string tables to report used, missing, and unused keys.
Package l10nkeys extracts localization message key usages from Go source (Localizer.T, Localizer.Plural, Localizer.Format, Catalog.T, Catalog.Plural, Catalog.Format), scenes (*.scene.yaml), screens (*.screen.yaml), cutscenes (*.cutscene.yaml), and data tables (registered or Go struct-tagged `table:"...,textkey"`), and compares them against a project's YAML string tables to report used, missing, and unused keys.
Package loaderrtest checks, in a loader's tests, that its errors are *loaderr.Error values an agent can act on: they name the file, the line and a fix.
Package loaderrtest checks, in a loader's tests, that its errors are *loaderr.Error values an agent can act on: they name the file, the line and a fix.
Package modelclient implements the shared HTTP wire client for Anthropic Messages and OpenAI-compatible Chat Completions endpoints used by both the editor's built-in agent and the agent evaluation harness.
Package modelclient implements the shared HTTP wire client for Anthropic Messages and OpenAI-compatible Chat Completions endpoints used by both the editor's built-in agent and the agent evaluation harness.
pkgscan unpacks the editor release packages safely and scans their contents with the repository's privacy rules (internal/repocheck), so a build step that picked up a local credential cannot reach a published package.
pkgscan unpacks the editor release packages safely and scans their contents with the repository's privacy rules (internal/repocheck), so a build step that picked up a local credential cannot reach a published package.
Package releaseplan plans and formats `nsgo build` release invocations and credits checks shared by `cmd/game release` and the scene editor's Export panel.
Package releaseplan plans and formats `nsgo build` release invocations and credits checks shared by `cmd/game release` and the scene editor's Export panel.
Package repocheck holds the repository-wide consistency tests (formats page, stability table, package catalogs and names, documentation Go samples, agent skill, format conformance coverage, example platform targets); it has no API.
Package repocheck holds the repository-wide consistency tests (formats page, stability table, package catalogs and names, documentation Go samples, agent skill, format conformance coverage, example platform targets); it has no API.
Package resourcelib connects pkg/assets to pkg/resource.Library without widening resource.Library's public API.
Package resourcelib connects pkg/assets to pkg/resource.Library without widening resource.Library's public API.
Package savefile provides core-free atomic file staging, backup rotation, directory syncing, stale temporary-file cleanup, and portable filename validation shared by pkg/save and pkg/online/gameserver.
Package savefile provides core-free atomic file staging, backup rotation, directory syncing, stale temporary-file cleanup, and portable filename validation shared by pkg/save and pkg/online/gameserver.
Package scenemerge inspects and configures the NSGo Git merge and diff drivers (nsgo-scene, nsgo-index, and nsgo-yaml) shared by the game CLI and the scene editor.
Package scenemerge inspects and configures the NSGo Git merge and diff drivers (nsgo-scene, nsgo-index, and nsgo-yaml) shared by the game CLI and the scene editor.
Package screenbind generates deterministic, typed Go bindings from *.screen.yaml files.
Package screenbind generates deterministic, typed Go bindings from *.screen.yaml files.
Package semver parses and compares Semantic Versioning 2.0.0 versions and evaluates version constraints shared by mods, library packs and plugins.
Package semver parses and compares Semantic Versioning 2.0.0 versions and evaluates version constraints shared by mods, library packs and plugins.
Command sizeprobe is a minimal entry point referencing the game packages (game, sprite, sound, tilemap) so the package size budget checks can build it and measure their combined WebAssembly, Android and iOS footprint.
Command sizeprobe is a minimal entry point referencing the game packages (game, sprite, sound, tilemap) so the package size budget checks can build it and measure their combined WebAssembly, Android and iOS footprint.
Package startuptime shares startup milestones between the game loop, asset groups, and development tools.
Package startuptime shares startup milestones between the game loop, asset groups, and development tools.
Package tagmatch provides shared, allocation-free validation and hierarchical parent matching for dotted gameplay tag names.
Package tagmatch provides shared, allocation-free validation and hierarchical parent matching for dotted gameplay tag names.
Package templateresidue compares a project whose game.yaml records an origin of kind template against a bundled template and returns advisory warnings for files and metadata that are still unchanged.
Package templateresidue compares a project whose game.yaml records an origin of kind template against a bundled template and returns advisory warnings for files and metadata that are still unchanged.
Package yamlmerge provides a generic keyed three-way merge engine for canonical YAML formats (prefabs, screens, state machines, cutscenes, materials, tilesets, data tables, string tables, project files, and other keyed YAML documents).
Package yamlmerge provides a generic keyed three-way merge engine for canonical YAML formats (prefabs, screens, state machines, cutscenes, materials, tilesets, data tables, string tables, project files, and other keyed YAML documents).
allformats
Package allformats registers all built-in NSGo canonical YAML format descriptors with internal/yamlmerge.
Package allformats registers all built-in NSGo canonical YAML format descriptors with internal/yamlmerge.
Package yamlzero normalizes IEEE 754 negative zero (-0.0) floats to positive zero (0.0) in Go values decoded from or encoded to YAML.
Package yamlzero normalizes IEEE 754 negative zero (-0.0) floats to positive zero (0.0) in Go values decoded from or encoded to YAML.

Jump to

Keyboard shortcuts

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