Lines Matching defs:URI
30 // URI represents the full URI for a file.
31 type URI string
33 // Filename returns the file path for the given URI.
34 // It is an error to call this on a URI that is not a valid filename.
35 func (uri URI) Filename() string {
43 func filename(uri URI) (string, error) {
60 // NewURI returns a span URI for the string.
62 func NewURI(s string) URI {
67 return URI(s)
72 func CompareURI(a, b URI) int {
82 func equalURI(a, b URI) bool {
86 // If we have the same URI basename, we may still have the same file URIs.
110 // FileURI returns a span URI for the supplied file path.
112 func FileURI(path string) URI {
141 return URI(uri)
153 // isWindowsDriveURI returns true if the file URI is of the format used by
155 // (see https://golang.org/issue/6027). We check if the URI path has