I tested the urip.Parse method against each of the examples in the RFC:
https://datatracker.ietf.org/doc/html/rfc3986#section-1.1.2
All of these parse without raising an exception. However the LDAP example - although parsing without raising an exception - gives an incomplete URI.
Example:
data = []byte("ldap://[2001:db8::7]/c=GB?objectClass?one")
uri, err := urip.Parse(data)
if err != nil {
fmt.Println(err.Error())
return
}
fmt.Printf("uri : %s\n", uri)
fmt.Printf("scheme : %s\n", uri.Scheme)
gives the following output:
uri : ldap://
scheme : ldap
(I should say this is a minor issue - and the library is generally useful to me - so thanks for developing this and sharing it!)
I tested the
urip.Parsemethod against each of the examples in the RFC:https://datatracker.ietf.org/doc/html/rfc3986#section-1.1.2
All of these parse without raising an exception. However the LDAP example - although parsing without raising an exception - gives an incomplete URI.
Example:
gives the following output:
(I should say this is a minor issue - and the library is generally useful to me - so thanks for developing this and sharing it!)