processes

package module
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 7 Imported by: 0

README

processes

processes golang cross-platform cmd

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPid

func GetPid(serverName string) (string, error)

func KillByPid

func KillByPid(pid string) error

func ProcessSnapshot

func ProcessSnapshot() (map[string]string, error)

func RunCommand

func RunCommand(cmd string) (string, error)

Types

type Process

type Process struct {
	Cmd *exec.Cmd
}

func Command

func Command(exe string, args ...string) (*Process, error)

type ProcessQuery

type ProcessQuery struct {
	// contains filtered or unexported fields
}

func Query

func Query(exe string, args ...string) (*ProcessQuery, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL