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

contract

command
v1.30.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Command contract generates AuthKit's v1 contract files: from the route catalog (httpapi.Catalog) and the error catalog, api/openapi.json and auth-ui's generated wire types, route table and error codes and messages; from the covered packages, the Go API list api/go.txt. Run it with go generate ./internal/httpapi; TestGeneratedContractIsFresh and TestGoAPISurface fail when a generated file is stale.

Jump to

Keyboard shortcuts

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