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.