Skip to content

os: return an error from UserHomeDir to match UserCacheDir #28562

@ianlancetaylor

Description

@ianlancetaylor

os.UserHomeDir will be new in Go 1.12, added in https://golang.org/cl/139418 with the signature func UserHomeDir() string. The existing function UserCacheDir has the signature func UserCacheDir() (string, error). Should we change UserHomeDir to return an error as UserCacheDir does?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions