Skip to content

Instantly share code, notes, and snippets.

View swallowstalker's full-sized avatar

Pulung Ragil swallowstalker

  • Depok, Indonesia
View GitHub Profile
@hivefans
hivefans / shell_output.go
Last active September 15, 2023 05:59
get the realtime output for a shell command in golang|-|{"files":{"shell_output.go":{"env":"plain"}},"tag":"bigdata"}
package main
import (
"bufio"
"fmt"
"io"
"os"
"os/exec"
"strings"
)