all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
16
Task/URL-decoding/Go/url-decoding.go
Normal file
16
Task/URL-decoding/Go/url-decoding.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
const escaped = "http%3A%2F%2Ffoo%20bar%2F"
|
||||
|
||||
func main() {
|
||||
if u, err := url.QueryUnescape(escaped); err == nil {
|
||||
fmt.Println(u)
|
||||
} else {
|
||||
fmt.Println(err)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue