Cross-platform CLI application to open files, directories, URLs from the command-line, written in Go.
go get github.com/pbnj/go-open
go get github.com/pbnj/go-open/cmd/gopen
import open "github.com/pbnj/go-open"
open.Open("file.txt") // will open file in default text editor
open.Open("https://google.com") // will open url in default browser
open.Open("image.png") // will open image in default image editor
gopen file.txt
gopen https://google.com
gopen some_file.txt another_file.txt https://google.com https://github.com
MIT © 2017 Peter Benjamin