Sign in
fuchsia
/
third_party
/
github.com
/
moby
/
moby
/
refs/tags/v24.0.0-rc.4
/
.
/
vendor
/
k8s.io
/
klog
/
v2
/
klog_file_others.go
blob: aa467268512f28e1078cf3b1b0e00681dd558f6c [
file
] [
log
] [
blame
]
//go:build !windows
// +build !windows
package klog
import (
"os/user"
)
func getUserName() string {
userNameOnce.Do(func() {
current, err := user.Current()
if err == nil {
userName = current.Username
}
})
return userName
}