su

package
v0.0.0-...-2540391 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombinedOutput

func CombinedOutput(uid, command string, args ...string) ([]byte, error)

CombinedOutput creates and runs command with user privilege and returns the combined output.

func Command

func Command(uid, command string, args ...string) (*exec.Cmd, error)

Command creates a new exec.Cmd that will run with user privilege.

func Output

func Output(uid, command string, args ...string) ([]byte, error)

Output creates and runs command with user privilege and returns the output.

func Run

func Run(uid, command string, args ...string) error

Run creates and runs command with user privilege.

Types

This section is empty.

Jump to

Keyboard shortcuts

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