Help us shape the future of Go! Take the 2026 Go Developer Survey

gen

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Command gen writes the two generated files of the bindings, the parts that reflection cannot find at run time because Go keeps no list of them:

  • enums_gen.go: for every enumerated type of the bound Go packages — a named type with a block of constants, such as stats.Alternative or optimize.Method — the Ruby symbols that name its values;
  • special_gen.go: every exported function of go-numerics/special, by name, which the Special module then binds by its signature.

Run it from the module root with `go generate` (or `go run ./internal/gen`); TestGeneratedFilesAreCurrent fails when either is out of date.

Jump to

Keyboard shortcuts

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