reorder works woot
This commit is contained in:
parent
a8f3954cd5
commit
eb6a9c6b2b
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user