filepathutil

package
v0.50.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OSPathSeparator = os.PathSeparator

OSPathSeparator is just a variable that is equal to os.PathSeparator. It's set by outside for mainly test usage.

Functions

func HasUnixPathPrefix

func HasUnixPathPrefix(crossPlatformPath, unixPath string) bool

HasUnixPathPrefix checks whether a cross platform path has an unix path as its prefix.

The interpretation of the unix path depends on the platform it runs.

func IsSameUnixPath

func IsSameUnixPath(unixPath, crossPlatformPath string) bool

IsSameUnixPath compares an unix path to a cross platform path.

The interpretation of the unix path depends on the platform it runs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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