github.com/ungtb10d/cli/v2@v2.0.0-20221110210412-98537dd9d6a1/internal/browser/browser.go (about)

     1  package browser
     2  
     3  import (
     4  	"io"
     5  
     6  	ghBrowser "github.com/cli/go-gh/pkg/browser"
     7  )
     8  
     9  type Browser interface {
    10  	Browse(string) error
    11  }
    12  
    13  func New(launcher string, stdout, stderr io.Writer) Browser {
    14  	b := ghBrowser.New(launcher, stdout, stderr)
    15  	return &b
    16  }