admin

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2023 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Force

func Force(path string, currentWorkingDir string, arguments ...string) error

Force will attempt to run the program as admin

If succeeded, the program will exit with code 0 The next time the program is restarted, the global hasAdmin variable will be true, and the program will not attempt to elevate again

func Is

func Is() bool

func Make

func Make(funcsUp int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL