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