func ExpandHome(path string) string {
	if strings.HasPrefix(path, "~/") {
		usr, err := user.Current()
		if err != nil {
			log.Fatalln(pfx.Err(err))
		}
		path = filepath.Join(usr.HomeDir, (path)[2:])
	}

	return path
}
// ExpandHome expands ~ to its proper path, where appropriate.
ExpandHome expands ~ to its proper path, where appropriate.
// ExpandHome expands ~ to its proper path where appropriate .
func ExpandHome(path string) string {
	if strings.HasPrefix(path, "~/") {
		usr, err := user.Current()
		if err != nil {
			log.Fatalln(pfx.Err(err))
		}
		path = filepath.Join(usr.HomeDir, (path)[2:])
	}
	return path
}
func ExpandHome ( path string ) string { if strings . HasPrefix ( path , " " ) { usr , err := user . Current ( ) if err != nil { log . Fatalln ( pfx . Err ( err ) ) } path = filepath . Join ( usr . HomeDir , ( path ) [ 2 : ] ) } return path }
ExpandHome expands ~ to its proper path, where appropriate.
ExpandHome expands ~ to its proper path where appropriate .