github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/webbrowser/webbrowser.go (about) 1 package webbrowser 2 3 // Launcher is an object that knows how to open a given URL in a new tab in 4 // some suitable browser on the current system. 5 // 6 // Launching of browsers is a very target-platform-sensitive activity, so 7 // this interface serves as an abstraction over many possible implementations 8 // which can be selected based on what is appropriate for a specific situation. 9 type Launcher interface { 10 // OpenURL opens the given URL in a web browser. 11 // 12 // Depending on the circumstances and on the target platform, this may or 13 // may not cause the browser to take input focus. Because of this 14 // uncertainty, any caller of this method must be sure to include some 15 // language in its UI output to let the user know that a browser tab has 16 // opened somewhere, so that they can go and find it if the focus didn't 17 // switch automatically. 18 OpenURL(url string) error 19 }