Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToFilePathArray ¶
ToFilePathArray returns an array of file paths from an array of URIScheme. If a URIScheme does not have a file path, it is not included in the result.
Types ¶
type URIScheme ¶
type URIScheme string
URIScheme represents a string type that defines a URI scheme. Supported URI schemes are: - /path/to/file (backward compatibility) - file:///path/to/file (RFC 8089) - data:;base64,SGVsbG8sIFdvcmxkIQ== (RFC 2397) - data:,plgd (RFC 2397)
func ToURISchemeArray ¶
ToURISchemeArray converts a slice of strings to a slice of URIScheme.
func (URIScheme) FilePath ¶
FilePath returns the file path of the URI scheme if it is a file URI scheme. If the URI scheme is a data URI scheme or any other supported URI scheme, it returns an empty string.
Click to show internal directories.
Click to hide internal directories.