cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(ex string, args ...string) string

调用 命令

func GetRAM

func GetRAM() string

// 执行命令

func ChCmd(ex string, args ...string, time int) {
	dc := gg.NewContext(0, 0)
	tmp := strings.Builder{}
	cmd := exec.Command(ex, args...)
	ctx, cancel := context.WithTimeout(context.Background(), time.Second*time.Duration(time))

}

内存占用

Types

This section is empty.

Jump to

Keyboard shortcuts

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