This repository has been archived by the owner. It is now read-only.
Check if the process is running as administrator on Windows
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
IsWadmin.go
IsWadmin_test.go
LICENSE
README.md

README.md

IsWadmin Build Status

Check if the process is running as administrator on Windows

How to use it

package main

import (
	"fmt"
	. "github.com/dlion/IsWadmin"
)

func main() {
	if IsWadmin() {
		fmt.Println("This process is running as administrator on Windows")
	}
}

Test

go test

Author

Domenico Luciani

https://domenicoluciani.com

License

MIT