localpathutil

package
v2.0.0-alpha.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand

func Expand(orig string) (string, error)

Expand expands a path like "~", "~/", "~/foo". Paths like "~foo/bar" are unsupported.

FIXME: is there an existing library for this?

func IsTildePath

func IsTildePath(path string) bool

IsTildePath returns true if the path is "~" or starts with "~/". This means Expand() can expand it with the home directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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