generate

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Command generate renders go/policy_iana.go from the IANA registry snapshots mirrored under go/testdata/iana — a checked-in copy of the repo-root script/iana snapshots the Ruby implementation also generates from (the two mirrors are kept identical by a drift test), so the module generates self-contained while the policy source of truth stays shared.

Run from the go/ module directory (go generate does this):

go run ./generate            # rewrite policy_iana.go
go run ./generate -check     # fail if policy_iana.go is stale (CI)

Jump to

Keyboard shortcuts

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