execs

package
v1.1.23 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package execs 执行命令.

执行外部命令,打开文件,显示文件位置.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotDefined = errors.New("OS is not defined")

ErrNotDefined 系统不支持.

Functions

func Exec

func Exec(name string, args ...string) error

Exec 执行命令.

func ExecOut

func ExecOut(name string, args ...string) (string, error)

ExecOut 获取执行结果.

func Open

func Open(file string) error

Open 打开文件.

func Show

func Show(file string) error

Show 在目录中显示.

Types

This section is empty.

Jump to

Keyboard shortcuts

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