Skip to content

Strict server middleware function definitions don't need to be in the runtime package #2270

Closed

Description

@mromaszewicz

Commit 04c680a moved the runtime directory into its own package, but the strict server middleware function typedefs really don't need to be in a separate module.

Move these to the codegen, and we can delete them from runtime. We'll embed those typedefs into the generated code.

It looks like this in generated code:

type StrictHandlerFunc = strictecho.StrictEchoHandlerFunc
type StrictMiddlewareFunc = strictecho.StrictEchoMiddlewareFunc

We can simply replace it with inline types.

Activity

  1. self-assigned this
    on Mar 3, 2026
  2. added a commit that references this issue on Mar 3, 2026
    d42c64a
  3. added a commit that references this issue on Mar 27, 2026
    bc5e7c3
  4. added a commit that references this issue on Apr 29, 2026
    79476ea
  5. added a commit that references this issue on Apr 29, 2026
    5b562c4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions