Small cross-platform utility library to open a browser to a target URL.
I prefer a compilation failure versus a runtime error.
Through the power of Go's build constraints, its primary value is it will not compile for any platform it does not support.
- MacOS (via
open
) - Windows (via
[email protected]
) - Linux (via
xdg-open
) - FreeBSD (via
xdg-open
) - NetBSD (via
xdg-open
) - OpenBSD (via
xdg-open
)
I saw @mattn's pattern for opening a browser window and thought it's something I would like to reuse but in a more strict fashion.