README ¶ Expand ~ in path go get gopkg.in/mattes/go-expand-tilde.v1 import ( "gopkg.in/mattes/go-expand-tilde.v1" ) func main() { path, err := tilde.Expand("~/path/to/whatever") } Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Variables func Expand(path string) (string, error) func Home() (string, error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrNoHome = errors.New("no home found") ) Functions ¶ func Expand ¶ func Expand(path string) (string, error) func Home ¶ func Home() (string, error) Types ¶ This section is empty. Source Files ¶ View all Source files tilde.go Click to show internal directories. Click to hide internal directories.