Skip to content

Instantly share code, notes, and snippets.

@kisielk
Created July 12, 2012 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kisielk/3094615 to your computer and use it in GitHub Desktop.
Save kisielk/3094615 to your computer and use it in GitHub Desktop.
Spawning an editor from within a Go program
package main
import (
"os"
"os/exec"
)
func main() {
c := exec.Command("vim")
c.Stdout = os.Stdout
c.Stdin = os.Stdin
c.Run()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment