move index to src
This commit is contained in:
parent
9a3987c96a
commit
3fb7c1ab0f
@ -29,13 +29,15 @@ func main() {
|
||||
}
|
||||
baseTrimmer, _ := regexp.Compile("^[0-9x]+-")
|
||||
for _, fi := range fileInfos {
|
||||
baseName := baseTrimmer.ReplaceAllString(fi.Name(), "")
|
||||
sourceNames = append(sourceNames, baseName)
|
||||
sourceMap[baseName] = fi.Name()
|
||||
if fi.Name() != "index.txt" {
|
||||
baseName := baseTrimmer.ReplaceAllString(fi.Name(), "")
|
||||
sourceNames = append(sourceNames, baseName)
|
||||
sourceMap[baseName] = fi.Name()
|
||||
}
|
||||
}
|
||||
|
||||
// read names from index
|
||||
indexBytes, idxErr := ioutil.ReadFile("tool/index.txt")
|
||||
indexBytes, idxErr := ioutil.ReadFile("src/index.txt")
|
||||
if idxErr != nil {
|
||||
panic(idxErr)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user