code: func FullProfilePath(pDir string) string {
  	if pDir != "" {
  		return pDir
  	}
  	// get user home dir:
  	home := os.TempDir()
  	u, err := user.Current()
  	if err == nil {
  		home = u.HomeDir
  	}
  	return filepath.Join(home, ProfileDir)
  
  }
docs: // FullProfilePath returns the full path to the user profile directory.
  // If the parameter is empty, it returns expanded "~/.tsh", otherwise
  // returns its unmodified parameter