The part being added is treated as an absolute path, because it starts with a slash, so it replaces the existing path.
Andy > On Jan 31, 2017, at 2:09 PM, Manlio Perillo <manlio.peri...@gmail.com> wrote: > > Il giorno martedì 31 gennaio 2017 18:35:02 UTC+1, Manlio Perillo ha scritto: > Thanks, I was not aware of this behavior. > > The documentation says: > "Parse parses a URL in the context of the receiver. The provided URL may be > relative or absolute." > > Probably an example should be added? > > Manlio > > Il giorno martedì 31 gennaio 2017 13:07:48 UTC+1, Martin Gallagher ha scritto: > Is this what you want: https://play.golang.org/p/BW96Bk_sqJ > <https://play.golang.org/p/BW96Bk_sqJ> > > Unfortunately it does not work: > https://play.golang.org/p/P0hNqnE9Ol > > I'm not even sure to understand *why* it does not work for this case. > > 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 > <mailto:golang-nuts+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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.