Documentation ¶
Overview ¶
Package kytheuri provides a type to represent Kythe URIs. This package supports parsing a Kythe URI from a string, and converting back and forth between a Kythe URI and a Kythe VName protobuf message.
Index ¶
Constants ¶
const Scheme = "kythe"
Scheme is the URI scheme label for Kythe.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
Equal reports whether the two Kythe URI strings are equal in canonical form. If either URI is invalid, Equal returns false.
Types ¶
type URI ¶
A URI represents a parsed Kythe URI. A zero-valued URI is ready for use, representing the empty URI.
func Parse ¶
Parse parses a Kythe URI from s, if possible. If s omits a scheme label, the "kythe" scheme is assumed.
func (*URI) String ¶
String renders the Kythe URI into the standard URI string format.
The resulting string is in canonical ordering, so if the URI was created by parsing a string, this may return a different string from that. However, parsing this string will always give back the same URI. If u == nil, it is treated as an empty URI.