func ParseURI(u string) *URI {
	if u == "" {
		return nil
	}
	pu, err := url.Parse(u)
	if err != nil {
		return nil
	}
	return &URI{URL: *pu}
}
ParseURI attempts to parse the given string as a URI.
package types
import (
	"encoding/json"
	"encoding/xml"
	"fmt"
	"net/url"
)
type URI struct {
	url.URL
}