pathutil

package
v2.11.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: GPL-3.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package pathutil provides path resolution utilities with no dependencies on other Zaparoo packages. This allows both config and helpers to use these functions without circular imports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExeDir

func ExeDir() string

ExeDir returns the directory containing the currently running executable. Returns an empty string if the executable path cannot be determined.

func ResolveRelativePath

func ResolveRelativePath(path string) string

ResolveRelativePath resolves a path relative to ExeDir if it is not absolute. Absolute and empty paths are returned unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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