Skip to content

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

@mpls104

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

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