fleet/pkg/open/open.go
Lucas Manuel Rodriguez c82c580716
Orbit: Add Fleet Desktop support to Windows (#4873)
* Orbit: Add Fleet Desktop support to Windows

* Rename workflow, fix linux build

* Do not compile systray on linux

* nolint on unused

* Fix lint properly

* nolint both checkers

* Fix monitor logic in desktopRunner

* Fix interrupt and execute order
2022-04-01 17:28:51 -03:00

12 lines
231 B
Go

package open
import "fmt"
// Browser opens the default browser at the given url and returns.
func Browser(url string) error {
if err := browser(url); err != nil {
return fmt.Errorf("open in browser: %w", err)
}
return nil
}