1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-12-04 14:46:29 -05:00
amfora/webbrowser/open_browser_other.go
Timur Ismagilov 4a71b691ea
Implement a more robust algorithm for opening web links on unices (#93)
Co-authored-by: makeworld <25111343+makeworld-the-better-one@users.noreply.github.com>
2020-10-01 17:06:50 -04:00

11 lines
300 B
Go

// +build !linux,!darwin,!windows,!freebsd,!netbsd,!openbsd
package webbrowser
import "fmt"
// Open opens `url` in default system browser, but not on this OS.
func Open(url string) (string, error) {
return "", fmt.Errorf("unsupported OS for default HTTP handling. Set a command in the config")
}