package open
import "github.com/skratchdot/open-golang/open"
Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.
This is a proxy for the following commands:
OSX: "open" Windows: "start" Linux/Other: "xdg-open"
This is a golang port of the node.js module: https://github.com/pwnall/node-open
Index ¶
- func Run(input string) error
- func RunWith(input string, appName string) error
- func Start(input string) error
- func StartWith(input string, appName string) error
Functions ¶
func Run ¶
Open a file, directory, or URI using the OS's default application for that object type. Wait for the open command to complete.
func RunWith ¶
Open a file, directory, or URI using the specified application. Wait for the open command to complete.
func Start ¶
Open a file, directory, or URI using the OS's default application for that object type. Don't wait for the open command to complete.
func StartWith ¶
Open a file, directory, or URI using the specified application. Don't wait for the open command to complete.
Source Files ¶
- Version
- v0.0.0-20200116055534-eef842397966 (latest)
- Published
- Jan 16, 2020
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 2 months ago –
Tools for package owners.