Skip to content

Instantly share code, notes, and snippets.

@blizzarddreams
Created December 11, 2015 19:10
Show Gist options
  • Select an option

  • Save blizzarddreams/1773dbfff9812ad5a44b to your computer and use it in GitHub Desktop.

Select an option

Save blizzarddreams/1773dbfff9812ad5a44b to your computer and use it in GitHub Desktop.
package main
import (
"os/exec"
)
func main() {
err := exec.Command("goimports", "a.go", ">>", "b.go").Run()
if err != nil {
panic(err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment