# Go

`cooldown` gates Go modules through `--tool go` (alias `golang`).

## What it reads

A Go project is a module: `cooldown` reads its `go.mod` and `go.sum`.

## Registry

Publish times come from the module proxy, GOPROXY, through each version's `@v/<ver>.info`.

## How it is driven

`cooldown` runs `go`, or the program `COOLDOWN_GO` names:

- **`check`:** proves `go.mod` and `go.sum` current with `go mod tidy -diff`, which needs Go 1.23
  or newer. A printed diff is a stale lock.
- **`upgrade` and `fix`:** move every planned module in one `go get <module>@<version> …`, so Go
  settles them in a single minimal version selection, then run `go mod tidy` once. A move to a new
  major version also rewrites the `/vN` import paths in the source.
- **`--build`:** runs `go build ./...`.
