Skip to content

Instantly share code, notes, and snippets.

@chressie
chressie / exec_run_example.go
Created September 13, 2010 19:38
example how to use exec.Run
package main
import (
"bufio"
"exec"
"fmt"
)
func main() {
cat, err := exec.LookPath("cat")
@chressie
chressie / gist:476610
Created July 15, 2010 07:08
traverse a file hierarchy in go
package main
import (
"container/vector"
"fmt"
"os"
"path"
)
type V struct {