func (u Path) Join(names ...string) (Path, error) {
	baseURL := u.String()
	if !strings.HasSuffix(baseURL, "/") {
		baseURL += "/"
	}

	namedPath := path.Join(names...)
	path, err := url.Parse(baseURL + namedPath)
	if err != nil {
		return Path{}, errors.Trace(err)
	}
	return MakePath(path), nil
}
// Join will sum path names onto a base URL and ensure it constructs a URL
// that is valid.
// Example:
//  - http://baseurl/name0/name1/
//
Join will sum path names onto a base URL and ensure it constructs a URL
that is valid.
// Join will sum path names onto a base URL and ensure it constructs a URL // that is valid . // Example : // - http : // baseurl / name0 / name1 / //
func (u Path) Join(names ...string) (Path, error) {
	baseURL := u.String()
	if !strings.HasSuffix(baseURL, "/") {
		baseURL += "/"
	}
	namedPath := path.Join(names...)
	path, err := url.Parse(baseURL + namedPath)
	if err != nil {
		return Path{}, errors.Trace(err)
	}
	return MakePath(path), nil
}
func ( u Path ) Join ( names ... string ) ( Path , error ) { baseURL := u . String ( ) if ! strings . HasSuffix ( baseURL , " " ) { baseURL += " " } namedPath := path . Join ( names ... ) path , err := url . Parse ( baseURL + namedPath ) if err != nil { return Path { } , errors . Trace ( err ) } return MakePath ( path ) , nil }
Join will sum path names onto a base URL and ensure it constructs a URL
that is valid.
Join will sum path names onto a base URL and ensure it constructs a URL that is valid .