path.Join strips a slash from url prefix

閲覧: 2,359 回
最初の未読メッセージにスキップ

james0...@gmail.com

未読、
2016/01/08 8:37:092016/01/08
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

未読、
2016/01/08 8:56:402016/01/08
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
全員に返信
投稿者に返信
転送
新着メール 0 件