Hi.

In a web application I need to append a path to an URL, but unfortunately 
this is more complex as it should be.
I planned to use path.Join, but the trailing slash is removed from the 
returned URL; as an example:
path.Join("/login/", "/a/b/") will return "/login/a/b", but it should be 
"/login/a/b/".

The problem is that the path package is designed to work with filesystem 
paths, but URL paths are slightly different.
What is the suggested method to join URL paths correctly?

Currently I'm using this implementation: 
https://play.golang.org/p/TRo6DCaiWf


Thanks  Manlio

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to