gogs/internal/osutil
bibo38 252d0fd977
osutil: use system API to get the username when env vars are empty (#6246)
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.
2020-08-19 21:17:16 +08:00
..
error.go refactor: unify error handling in routing layer 2020-03-16 01:22:27 +08:00
error_test.go util: add tests (#5989) 2020-03-16 01:54:08 +08:00
osutil.go osutil: use system API to get the username when env vars are empty (#6246) 2020-08-19 21:17:16 +08:00
osutil_test.go osutil: use system API to get the username when env vars are empty (#6246) 2020-08-19 21:17:16 +08:00