reorder works woot

This commit is contained in:
Mark McGranaghan 2012-09-20 22:09:22 -07:00
parent a8f3954cd5
commit eb6a9c6b2b
96 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import (
"io/ioutil" "io/ioutil"
"strings" "strings"
"regexp" "regexp"
"os"
) )
func main() { func main() {
@ -38,7 +39,7 @@ func main() {
// rename some stuff // rename some stuff
for index, indexName := range indexNames { for index, indexName := range indexNames {
oldName := sourceMap[indexName] oldName := sourceMap[indexName]
newName := fmt.Sprintf("%d-%s.go", index+1, indexName) newName := fmt.Sprintf("%03d-%s.go", index+1, indexName)
os.Rename(oldName, newName) os.Rename(oldName, newName)
} }
} }