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 ¶
ContractTilde converts /home/user/path/to/file to ~/path/to/file.
func DataDir ¶
DataDir gets the XDG_DATA_DIR from the environment, with reasonable defaults for the current GOOS.
func ExpandTilde ¶
ExpandTilde converts ~/path/to/file to /home/user/path/to/file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.