gensource

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package gensource identifies the Go files tinybind itself wrote.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGenerated

func IsGenerated(file *ast.File) bool

IsGenerated reports whether file was written by tinybind.

Discovery skips such a file. A generated registry registers the pages of a route tree, so reading it back would discover those pages as routes and put an HTML page and its action endpoints into an OpenAPI document, which is exactly what a page route is not. The same applies to a generated binder or component: nothing this tool wrote is an input to what it reads.

Another tool's generated code is deliberately not skipped. Its registrations are a user's own API surface, and dropping them would remove routes from a document with nothing said about it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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