|
|
@ -22,6 +22,7 @@ import (
|
|
|
|
"log"
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
"regexp"
|
|
|
|
"regexp"
|
|
|
|
|
|
|
|
"strings"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// loadCmd represents the load command
|
|
|
|
// loadCmd represents the load command
|
|
|
@ -120,18 +121,23 @@ func loadFile() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ****
|
|
|
|
// ****
|
|
|
|
// ** Process the data line
|
|
|
|
// ** Process the Header block
|
|
|
|
// ****
|
|
|
|
// ****
|
|
|
|
|
|
|
|
|
|
|
|
//** is it a Header line?
|
|
|
|
|
|
|
|
if(regexpHeaderMyCall.MatchString(eachline)) {
|
|
|
|
if(regexpHeaderMyCall.MatchString(eachline)) {
|
|
|
|
myCallList := regexpHeaderMyCall.Split(eachline,-1)
|
|
|
|
myCallList := regexpHeaderMyCall.Split(eachline,-1)
|
|
|
|
fmt.Println(len(myCallList))
|
|
|
|
myCall := ""
|
|
|
|
fmt.Println("myCallList", myCallList)
|
|
|
|
if(len(myCallList[1]) > 0) {
|
|
|
|
fmt.Println(myCallList[1])
|
|
|
|
myCall = strings.ToUpper(myCallList[1])
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
fmt.Println("my call: ", myCall)
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ****
|
|
|
|
|
|
|
|
// ** Process the data block
|
|
|
|
|
|
|
|
// ****
|
|
|
|
|
|
|
|
|
|
|
|
fmt.Println(eachline)
|
|
|
|
fmt.Println(eachline)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|