Golang example of using a manifest file to prompt "Run as administrator"
Install rsrc tool for embedding binary resources in Go programs
go get github.com/akavel/rsrc
Generates a .syso file with embedded resources
rsrc -manifest app.exe.manifest -o app.syso
Build executable
GOOS="windows" GOARCH="386" go build -o app.exe
how-to-ask-for-administer-privileges-on-windows-with-go
check-if-application-is-running-as-administrator-in-golang
See this technique, "...run as a standard user in most cases, and only elevate when needed. I use this in command line tools where most functions don't need admin rights"