Documentation ¶ Index ¶ func Dir() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Dir ¶ func Dir() string Dir returns the user's home directory. It calls os.Exit(1) if the home directory cannot be determined. Use this for critical paths where an empty home would cause data to be written to the wrong location. Types ¶ This section is empty. Source Files ¶ View all Source files home.go Click to show internal directories. Click to hide internal directories.