fileurl

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPath

func FromPath(filename string) (string, error)

FromPath converts a local OS path into a standards-compliant file URL.

func IsLocalRawURL

func IsLocalRawURL(parsed *url.URL) bool

IsLocalRawURL reports whether a raw artifact reference should be treated as a local OS path rather than a network URL. Bare paths have no scheme; Windows drive paths parse with a one-letter scheme.

func ToPath

func ToPath(parsed *url.URL) string

ToPath converts a parsed file URL back into a local OS path, handling Windows drive paths (file:///C:/x) and UNC hosts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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