exec

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(dir string, params []string) (string, error)

Deprecated

等待执行完毕才返回, dir为cmd命令执行的位置,传入空值则为默认路径。 params中的命令会用空格分隔,一次性提交给cmd。

func CmdNoOutput

func CmdNoOutput(dir string, params []string) error

Deprecated

等待执行完毕才返回,不反回输出。 dir为cmd命令执行的位置,传入空值则为默认路径。 params中的命令会用空格分隔,一次性提交给cmd。

func Cmd_NoWait

func Cmd_NoWait(dir string, params []string) (cmd *exec.Cmd, err error)

Deprecated

不等待执行完毕就返回(go程序不能立即退出),如果params中有转义字符需要自己处理, dir为cmd命令执行的位置,传入空值则为默认路径。 params中的命令会用空格分隔,一次性提交给cmd。

func OpenUrl

func OpenUrl(uri string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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