gen

command
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

A program that generates OpenAPI documentation for a Go server. It reads all `server.AddHandler` calls in the codebase and generates OpenAPI documentation based on the registered handlers.

The format is as follows it scans through: server.AddHandler("GET ...", func(w, r) { ... }) It looks at the usage of `server.ParseRequest` to determine the request structure and the response structure is based on how the `WriteJSON` and `WriteError` functions are used in the handler.

Jump to

Keyboard shortcuts

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