mirror of https://github.com/gogs/gogs.git
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. |
||
---|---|---|
.. | ||
error.go | ||
error_test.go | ||
osutil.go | ||
osutil_test.go |