Help us shape the future of Go! Take the 2026 Go Developer Survey

pathx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package pathx compares the file paths that agents, git and the OS report. On Windows they mix separators, the case of letters and the Git Bash form /c/Users/... of a drive path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rel

func Rel(dir, p string) (string, bool)

Rel returns p relative to dir, with forward slashes. It returns false when p is not dir or inside it.

func Same

func Same(a, b string) bool

Same reports whether a and b name the same path.

func Slash

func Slash(p string) string

Slash cleans p and returns it with forward slashes, the form of git paths.

Types

This section is empty.

Jump to

Keyboard shortcuts

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