Skip to content
This repository has been archived by the owner on Sep 3, 2018. It is now read-only.

Latest commit

 

History

History
35 lines (24 loc) · 481 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 481 Bytes

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