mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-28 14:41:10 +01:00
13 lines
171 B
Go
Vendored
13 lines
171 B
Go
Vendored
//go:build !windows
|
|
|
|
package glog
|
|
|
|
import "os/user"
|
|
|
|
func lookupUser() string {
|
|
if current, err := user.Current(); err == nil {
|
|
return current.Username
|
|
}
|
|
return ""
|
|
}
|