mirror of
https://github.com/moby/moby.git
synced 2026-07-24 08:22:47 +00:00
full diff: https://github.com/Microsoft/hcsshim/compare/v0.9.10...v0.11.1 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
12 lines
157 B
Go
12 lines
157 B
Go
//go:build windows
|
|
|
|
package winapi
|
|
|
|
import (
|
|
"golang.org/x/sys/windows"
|
|
)
|
|
|
|
func IsElevated() bool {
|
|
return windows.GetCurrentProcessToken().IsElevated()
|
|
}
|