Get the best terminal the user has installed. Go port of my Node package get-term.
go get github.com/zacanger/getterminal
package main
import (
"fmt"
"os/exec"
"github.com/zacanger/get-terminal"
)
func main() {
bestTerminal := getterminal.GetTerminal()
fmt.Println("best terminal to use is", bestTerminal)
exec.Cmd(bestTerminal).Run()
}
Contributions are welcome! See CONTRIBUTING