github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/internal/browser/browser.go (about)

     1  // Copyright 2016 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package browser provides utilities for interacting with users' browsers.
     6  package browser
     7  
     8  // Commands returns a list of possible commands to use to open a url.
     9  func Commands() [][]string
    10  
    11  // Open tries to open url in a browser and reports whether it succeeded.
    12  func Open(url string) bool