mirror of
https://github.com/gogs/gogs.git
synced 2025-05-31 11:42:13 +00:00
As Golang supports getting usernames via the standard library, this function is now used to get the username if the environment variables are empty. Using the standard library as a fallback is intended to keep compability to existing implementations that rely on the environment variables dictating the current username.