gen

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 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 internal/connect/ampcatalog/providers.json from the amp-labs catalog.

It is the only thing in this repository that imports the catalog library, and it is a main package that nothing imports, so the library is a build-time requirement and not a linked dependency of the codeaf binary. That is the whole point of the exercise — see ../ampcatalog.go.

Run it with `go generate ./internal/connect/ampcatalog` and read the diff. The rows are re-encoded through the mirror types rather than copied field by field, so a field the mirror does not declare cannot leak into the snapshot, and a field it declares under the library's own JSON name arrives without this file mentioning it.

Jump to

Keyboard shortcuts

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