Groups
Sign in
Groups
golang-nuts
Conversations
About
Send feedback
Help
path.Join strips a slash from url prefix
2,362 views
Skip to first unread message
james0...@gmail.com
unread,
Jan 8, 2016, 8:37:09 AM
1/8/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
Using path.Join to work with URLs fails:
https://play.golang.org/p/rYlKpTIfQ7
Is there a suitable path joiner for this case?
Jesse McNelis
unread,
Jan 8, 2016, 8:56:40 AM
1/8/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to james0...@gmail.com, golang-nuts
If you're dealing with urls then the net/url package is what you want.
https://play.golang.org/p/ndjMiEGlSr
Reply all
Reply to author
Forward
0 new messages