Skip to content

How to get named route path only? #2

@acidvertigo

Description

@acidvertigo

I'm using router.Route("route name") method to get the path of the named route. As I understand it returns a &Route struct but path field is not accessible because not exported.

I like this function because is useful for reverse routing.

Is possible to get the path from named route?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions