gen

command
v0.0.0-...-adc199e Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command gen writes the data files of src/data/generated, which the directives of the pages read. With no flag, it writes src/data/generated/schemes.json, the URL schemes of the registry of the release of dburl that go.mod pins. The ::schemes and ::databases directives of the pages read that file (src/lib/schemes.mjs). Run it in the root of the repository after go.mod moves to another release of dburl:

go run ./cmd/gen

A test fails when the file differs from what the program makes. See D7.

With -releases, it fetches the releases of usql from the GitHub API and writes src/data/generated/releases.json, which the ::releases directive reads (src/lib/releases.mjs). Run it after a release of usql:

go run ./cmd/gen -releases

Only -releases uses the network. It sends the token in GITHUB_TOKEN or GH_TOKEN when one is set, so that GitHub allows more requests.

Jump to

Keyboard shortcuts

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