13 lines
171 B
Go
13 lines
171 B
Go
//go:build !windows
|
|
|
|
package glog
|
|
|
|
import "os/user"
|
|
|
|
func lookupUser() string {
|
|
if current, err := user.Current(); err == nil {
|
|
return current.Username
|
|
}
|
|
return ""
|
|
}
|