Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShorthandHome ¶
ShorthandHome returns the same path but replaces the first part of the path with the home shorthand ("~") if the path is inside the home directory.
Example:
Input: "/home/jane/Downloads" Output: "~/Downloads"
func Stringify ¶
Stringify converts a value to a string. This functions differently than the stdlib fmt.Sprint but having some custom settings for some types:
- Nils are formatted as empty string, instead of "<nil>"
- Floats are always formatted in decimal notation
- Other types still use fmt.Sprint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.