Skip to content

Instantly share code, notes, and snippets.

@rubiojr
Last active May 9, 2020
Embed
What would you like to do?
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