intial state

This commit is contained in:
2022-04-26 09:55:59 -04:00
commit a2085625aa
8 changed files with 263 additions and 0 deletions

19
exp/exec/exec.go Normal file
View File

@ -0,0 +1,19 @@
package main
import (
"fmt"
"os/exec"
)
func main() {
fmt.Println("vim-go")
c := exec.Command("./script.sh")
op, err := c.Output()
if err != nil {
fmt.Println(err)
exitErr := err.(*exec.ExitError)
fmt.Printf("hello %s\n", exitErr.Stderr)
} else {
fmt.Printf("%s", op)
}
}