postprocess

command
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Command postprocess applies transformations to generated.go to fix conflicts introduced by oapi-codegen that cannot be resolved via configuration alone.

Transformations applied:

  1. Rename symbols that conflict with the public API of this package (ClientOption, NewClient, WithHTTPClient, WithBaseURL). oapi-codegen does not provide a configuration option to rename these.
  2. Remove deprecated fields from PrometheusAlertRule (Description, Summary, and the deprecated KeepFiringFor) since these have been replaced by annotations and the snake_case keep_firing_for field respectively.

Usage: go run ./tools/postprocess generated.go

Jump to

Keyboard shortcuts

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