Recommended way to encode/decode URLs

escaping, go

Solution

You're looking for the "net/url" package.

http://golang.org/pkg/net/url/#QueryEscape

Problem

Possible Duplicate: Encode / decode URLs What's the recommended way to encode/decode URLs in Go? I am looking to the equivalent of encodeURIComponent in JavaScript.

Original source

Related problems