Last active
May 9, 2020 15:38
-
-
Save rubiojr/97f9c266fe6b8d64239c28220bf121e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/url" | |
) | |
func main() { | |
u, _ := url.Parse(`file:///c:/go`) | |
fmt.Println(u.Path) // prints /c:/go | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment