open

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2015 License: MIT, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(input string) error

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

func RunWith(input string, appName string) error

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

func Start

func Start(input string) error

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

func StartWith(input string, appName string) error

Open 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