12 lines
330 B
Go
12 lines
330 B
Go
|
|
// pkg/browser/platform.go
|
||
|
|
package browser
|
||
|
|
|
||
|
|
// Platform abstracts the system browser/file-opener backend.
|
||
|
|
type Platform interface {
|
||
|
|
// OpenURL opens the given URL in the default system browser.
|
||
|
|
OpenURL(url string) error
|
||
|
|
|
||
|
|
// OpenFile opens the given file path with the system default application.
|
||
|
|
OpenFile(path string) error
|
||
|
|
}
|