Skip to content

Commit

Permalink
Merge pull request #7 from Rvn0xsy/dev
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
倾旋 authored Sep 17, 2021
2 parents 1eac06f + 4c0802b commit 6f4dcf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pkg/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func SelectOneResult(fileList []string) {
count = len(fileList)
fmt.Print(fmt.Sprintf("[Count : %d] > Select Result Number : ",count))
_, err := fmt.Scanf("%d", &i)
fmt.Println(i)
// fmt.Println(i)
if err != nil{
i = count-1
}
Expand All @@ -104,6 +104,9 @@ func getDataStruct(file string) (Data * DataStruct ){
yamlFile, err := ioutil.ReadFile(file)
utils.CheckErrorOnPrint(err)
err = yaml.Unmarshal(yamlFile, Data)
if err != nil{
fmt.Println("ERROR >>>> ", file)
}
utils.CheckErrorOnPrint(err)
return Data
}
Expand Down
2 changes: 1 addition & 1 deletion utils/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func GetAllDataFile(path string) (fileList []string) {
filepath.Walk(path, func(path string, info os.FileInfo, err error) error {
if !info.IsDir() {
if strings.HasSuffix(path, DbFileSuffix){
fmt.Println(path)
// fmt.Println(path)
fileList = append(fileList, path)
}
}
Expand Down

0 comments on commit 6f4dcf6

Please sign in to comment.