Encode URL in Golang

Syntax

QueryEscape(s string)

Example:

QueryEscape("Hellö Wörld@Golang")

Result:

Hell%C3%B6+W%C3%B6rld%40Golang


Decode URL in Golang

Syntax

QueryUnescape(s string)

Example:

QueryUnescape("Hell%C3%B6+W%C3%B6rld%40Golang")

Result:

Hellö Wörld@Golang