Skip to content
Node: child_process3 APIs

exec

Package exec runs external commands with context. Node equivalent: child_process.

import "github.com/sahilkhaire/gox/exec"
## API reference

Select a symbol below — each page explains what it does, shows Node.js vs Go comparisons, and includes a runnable example.

Functions

SymbolNode.jsKindSummary
Execexec('ls -la')funcExec runs a shell-less command string split on whitespace (child_process.exec).

Types

SymbolNode.jsKindSummary
CmdtypeCmd wraps os/exec.Cmd with context cancellation.

Methods

SymbolNode.jsKindSummary
Cmd.Commandspawn(cmd, args)methodCommand builds a command (child_process.spawn / execFile).

MIT Licensed · Built for Node.js developers moving to Go