github.com/git-amp/amp-sdk-go@v0.7.5/stdlib/platform/utils.go (about) 1 package platform 2 3 import ( 4 "github.com/pkg/browser" 5 ) 6 7 // LaunchURL() pushes an OS-level event to open the given URL using the user's default / primary browser. 8 // 9 // For future-proofing, LaunchURL() should be used instead of calling browser.OpenURL, allowing its implementation to be switched out. 10 func LaunchURL(url string) error { 11 return browser.OpenURL(url) 12 }