home

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package home provides utilities for dealing with the user's home directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir() string

Dir returns the user home directory.

func Long

func Long(p string) string

Long replaces the `~` with actual home path from Dir.

func Short

func Short(p string) string

Short replaces the actual home path from Dir with `~`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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