Skip to content

Instantly share code, notes, and snippets.

@atotto
Created May 10, 2012 10:26
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 atotto/2652333 to your computer and use it in GitHub Desktop.
Save atotto/2652333 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"os"
"path/filepath"
)
func main() {
filepath.Walk("/tmp/", func(path string, info os.FileInfo, err error) error {
if info == nil {
return err
}
fmt.Println(path)
return nil
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment