exec
Package exec runs external commands with context. Node equivalent: child_process.
import "github.com/sahilkhaire/gox/exec"
Select a symbol below — each page explains what it does, shows Node.js vs Go comparisons, and includes a runnable example.
Functions
| Symbol | Node.js | Kind | Summary |
|---|---|---|---|
| Exec | exec('ls -la') | func | Exec runs a shell-less command string split on whitespace (child_process.exec). |
Types
| Symbol | Node.js | Kind | Summary |
|---|---|---|---|
| Cmd | — | type | Cmd wraps os/exec.Cmd with context cancellation. |
Methods
| Symbol | Node.js | Kind | Summary |
|---|---|---|---|
| Cmd.Command | spawn(cmd, args) | method | Command builds a command (child_process.spawn / execFile). |