paths

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Unlicense Imports: 5 Imported by: 0

Documentation

Overview

Package paths is an internal package of twtr/cmd.

It provides helpers to manipulate paths and directories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContractTilde

func ContractTilde(dir string) string

ContractTilde converts /home/user/path/to/file to ~/path/to/file.

func DataDir

func DataDir() (dir string, err error)

DataDir gets the XDG_DATA_DIR from the environment, with reasonable defaults for the current GOOS.

func ExpandTilde

func ExpandTilde(dir string) string

ExpandTilde converts ~/path/to/file to /home/user/path/to/file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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