This stable version
$ go get github.com/mantyr/urls
package main
import (
"github.com/mantyr/urls"
)
func main() {
u := urls.New()
u.SetBase("http://example.com/path")
u.SetAddress("http://example.org/path/file")
u.CheckScheme("http", "https", "")
u.CheckHost()
u.Is()
u.IsHost()
u.IsPath()
u.IsFile("jpeg", "doc")
u.String()
// more example in url_test.go
}