/pkill

Provides Golang wih an easy to use and cross-platform method of killing processes based on their process name, similar to how Unix's pkill command works.

Primary LanguageGo

pkill for Golang!

Extremely simple, but cross-platform function to kill a process by it's process name

import "github.com/SkyrisBactera/pkill"
// Kills chrome
output, err := pkill.Pkill("chrome")
if err != nil {
    fmt.Println(err)
}
fmt.Println(output)