ptr, ref and deref funcs response, use fmt.Fprint(f) validate, few new funcs
16 lines
255 B
Go
16 lines
255 B
Go
package open
|
|
|
|
import (
|
|
"os/exec"
|
|
)
|
|
|
|
// http://sources.debian.net/src/xdg-utils
|
|
|
|
func open(input string) *exec.Cmd {
|
|
return exec.Command("xdg-open", input)
|
|
}
|
|
|
|
func openWith(input string, appName string) *exec.Cmd {
|
|
return exec.Command(appName, input)
|
|
}
|