Skip to content

Instantly share code, notes, and snippets.

@atotto
Created August 16, 2013 14:02
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/6250209 to your computer and use it in GitHub Desktop.
Save atotto/6250209 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"path/filepath"
)
func main() {
matches, err := filepath.Glob("*/*.go")
if err != nil {
fmt.Println(err)
return
}
for i, file := range matches {
fmt.Printf("%d:%s\n", i, file)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment