open

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package open opens 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"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(input string) error

Run opens a file, directory, or URI using the OS's default application for that object type. Wait for the open command to complete.

func RunWith

func RunWith(input string, appName string) error

RunWith opens a file, directory, or URI using the specified application. Wait for the open command to complete.

func Start

func Start(input string) error

Start opens 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

func StartWith(input string, appName string) error

StartWith opens a file, directory, or URI using the specified application. Don't wait for the open command to complete.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL