fileuri

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPath

func FromPath(path string) (string, error)

FromPath converts a local filesystem path to URI with the file: scheme. Relative paths are resolved using filepath.Abs before conversion.

func FromWinPath

func FromWinPath(path string) (string, error)

FromWinPath converts a Windows filesystem path to URI with file: scheme. Unlike FromPath, this is not platform dependent. For example, C:/foo/bar.txt is a valid Unix-path and would be converted differently on POSIX systems vs Windows. That is not the case here.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL