open

package
v0.0.0-...-43f4138 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: 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.

使用其他app运行命令

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