envdoc

command
v0.138.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 19 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 envdoc generates docs/ENV.md, the list of environment variables that go-common packages declare in the env registry.

go run ./scripts/envdoc           write docs/ENV.md
go run ./scripts/envdoc -check    exit 1 if docs/ENV.md is stale, or if a package
                                  declares variables but is not imported below

A package's variables only exist in the registry once the package is linked in, so this program imports every package that declares any. -check scans the module for env.Declare and env.Removed calls and fails if one lives in a package this file does not import, so the document cannot silently go incomplete.

Jump to

Keyboard shortcuts

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