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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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