Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Setting a name on a route disables URI method#2811

Unanswered
Arcnor asked this question inQ&A
Discussion options

Hello, I'm not sure if this is expected behavior or I'm using it wrong, but when I set the name for a route (e.GET("", myHandler).Name = "MyName") I'm not able to usee.URI(myHandler) anymore and have to usee.Reverse("MyName") instead. I was expecting URI to continue working, can't see why one should affect the other.

Thanks in advance.

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@Arcnor

[8]ページ先頭

©2009-2025 Movatter.jp