func (ns *Namespace) Resolve(uri string) (string, bool) {
	if ns == nil {
		return "", false
	}
	prefix, ok := ns.uriToPrefix[uri]
	return prefix, ok
}
// Resolve resolves the given schema URI to its registered prefix and
// returns the prefix and whether the resolution was successful.
//
// If ns is nil, it is treated as if it were empty.
//
// Resolve does not mutate ns and may be called concurrently
// with other non-mutating Namespace methods.
Resolve resolves the given schema URI to its registered prefix and
returns the prefix and whether the resolution was successful.

If ns is nil, it is treated as if it were empty.

Resolve does not mutate ns and may be called concurrently
with other non-mutating Namespace methods.
// Resolve resolves the given schema URI to its registered prefix and // returns the prefix and whether the resolution was successful . // // If ns is nil it is treated as if it were empty . // // Resolve does not mutate ns and may be called concurrently // with other non - mutating Namespace methods .
func (ns *Namespace) Resolve(uri string) (string, bool) {
	if ns == nil {
		return "", false
	}
	prefix, ok := ns.uriToPrefix[uri]
	return prefix, ok
}
func ( ns * Namespace ) Resolve ( uri string ) ( string , bool ) { if ns == nil { return " " , false } prefix , ok := ns . uriToPrefix [ uri ] return prefix , ok }
Resolve resolves the given schema URI to its registered prefix and
returns the prefix and whether the resolution was successful.
Resolve resolves the given schema URI to its registered prefix and returns the prefix and whether the resolution was successful .