16 lines
198 B
Go
16 lines
198 B
Go
|
|
package main
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
"log"
|
||
|
|
"os/exec"
|
||
|
|
)
|
||
|
|
|
||
|
|
func main() {
|
||
|
|
output, err := exec.Command("ls", "-l").CombinedOutput()
|
||
|
|
if err != nil {
|
||
|
|
log.Fatal(err)
|
||
|
|
}
|
||
|
|
fmt.Print(string(output))
|
||
|
|
}
|