path

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package path provides functions for manipulating file paths

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripTrailingSlashes

func StripTrailingSlashes(path string) string

StripTrailingSlashes If the path ends with a slash, remove it - path: the path to strip - returns: the path with the trailing slash removed

func UserHomeDir

func UserHomeDir() string

If the OS is Windows, return the HOMEDRIVE and HOMEPATH environment variables concatenated together. If the OS is Linux, return the XDG_CONFIG_HOME environment variable. Otherwise, return the HOME environment variable

Types

This section is empty.

Jump to

Keyboard shortcuts

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