urlpath

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package urlpath provides utilities for converting between file URLs and file paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URLFromFilePath

func URLFromFilePath(path string) (*url.URL, error)

URLFromFilePath converts the given absolute path to a URL.

func URLToFilePath

func URLToFilePath(u *url.URL) (string, error)

URLToFilePath converts a file-scheme url to a file path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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