Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPathForResource ¶
GetPathForResource tries to load a file or URL from the given path. If the path starts with "http://" or "https://", it will try to load the file from the URL and save it in a temporary file. It will return the path to the temporary file. If the path is an actual file path, it will return the filepath
Types ¶
type UnrecognizedSchemeError ¶
type UnrecognizedSchemeError struct {
Scheme string
}
UnrecognizedSchemeError is an error type for when a URL scheme is not recognized out of the supported ones.
func (*UnrecognizedSchemeError) Error ¶
func (e *UnrecognizedSchemeError) Error() string
Click to show internal directories.
Click to hide internal directories.