Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FileScheme schema of filesystem path. FileScheme = "file" // HTTPScheme schema of http. HTTPScheme = "http" // HTTPSScheme schema of https. HTTPSScheme = "https" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URI ¶
type URI string
URI Uniform Resource Identifier (URI) https://tools.ietf.org/html/rfc3986.
This class is a simple parser which creates the basic component parts (http://tools.ietf.org/html/rfc3986#section-3) with minimal validation and encoding.
foo://example.com:8042/over/there?name=ferret#nose \_/ \______________/\_________/ \_________/ \__/ | | | | | scheme authority path query fragment | _____________________|__ / \ / \ urn:example:animal:ferret:nose
func ParseDocumentURI ¶ added in v0.3.977
ParseDocumentURI interprets a string as a DocumentURI, applying VS Code workarounds; see [DocumentURI.UnmarshalText] for details. If "s" is a file name, use URIFromPath instead.
func URIFromPath ¶ added in v0.3.977
URIFromPath returns DocumentURI for the supplied file path. Given "", it returns "".
Click to show internal directories.
Click to hide internal directories.