Browse Source

Set std

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 1 month ago
parent
commit
b7d07b1d84
Signed by: jolheiser GPG Key ID: B853ADA5DA7BBF7A
  1. 11
      main.go

11
main.go

@ -37,10 +37,9 @@ func main() {
*base = strings.TrimSuffix(*base, "/")
out, err := exec.Command("go", "mod", "init", fmt.Sprintf("%s/%s", *base, name)).CombinedOutput()
if err != nil {
fmt.Println(err)
return
}
fmt.Print(string(out))
cmd := exec.Command("go", "mod", "init", fmt.Sprintf("%s/%s", *base, name))
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
_ = cmd.Run()
}

Loading…
Cancel
Save