Skip to content

The order of the middlewares is reversed in gorilla/mux implementation #841

Closed

Description

@mpls104

Hi, thank you for adding support the code generation for gorilla/mux.

I've tried this feature and noticed that the order of the middlewares passed to HandlerWithOptions are reversed when they applied.

Like the implementation of middleware in gorilla mux, how about changing the order?
https://github.com/gorilla/mux/blob/3cf0d013e53d62a96c096366d300c84489c26dd5/mux.go#L143-L145

Please let me hear your opinion @jamietanna because you have worked for supporting gorilla/mux a lot!

Here's my implementation of this issue. #842

Activity

  1. ghost closed this as completedin #842on Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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