os.Path.homeDir

Returns the path to the HOME directory of the current user.

Syntax

os.Path.homeDir()
  RETURNING homedir STRING
  1. homedir Path to the HOME directory of the user.