@ -64,6 +64,7 @@ func LoadFile(inputFilename string, isInterpolateTime bool) (filleFullLog []LogL
regexpHeaderMySota := regexp . MustCompile ( ` (?i)^mysota\s+ ` )
regexpHeaderMySota := regexp . MustCompile ( ` (?i)^mysota\s+ ` )
regexpHeaderMyPota := regexp . MustCompile ( ` (?i)^mypota\s+ ` )
regexpHeaderMyPota := regexp . MustCompile ( ` (?i)^mypota\s+ ` )
regexpHeaderMyGrid := regexp . MustCompile ( ` (?i)^mygrid\s+ ` )
regexpHeaderMyGrid := regexp . MustCompile ( ` (?i)^mygrid\s+ ` )
regexpHeaderMyCounty := regexp . MustCompile ( ` (?i)^mycounty\s+ ` )
regexpHeaderQslMsg := regexp . MustCompile ( ` (?i)^qslmsg\s+ ` )
regexpHeaderQslMsg := regexp . MustCompile ( ` (?i)^qslmsg\s+ ` )
regexpHeaderNickname := regexp . MustCompile ( ` (?i)^nickname\s+ ` )
regexpHeaderNickname := regexp . MustCompile ( ` (?i)^nickname\s+ ` )
@ -73,6 +74,7 @@ func LoadFile(inputFilename string, isInterpolateTime bool) (filleFullLog []LogL
headerMySOTA := ""
headerMySOTA := ""
headerMyPOTA := ""
headerMyPOTA := ""
headerMyGrid := ""
headerMyGrid := ""
headerMyCounty := ""
headerQslMsg := ""
headerQslMsg := ""
headerNickname := ""
headerNickname := ""
//headerDate := ""
//headerDate := ""
@ -245,6 +247,16 @@ func LoadFile(inputFilename string, isInterpolateTime bool) (filleFullLog []LogL
continue
continue
}
}
//My County
if regexpHeaderMyCounty . MatchString ( eachline ) {
myMyCountyList := regexpHeaderMyCounty . Split ( eachline , - 1 )
if len ( myMyCountyList [ 1 ] ) > 0 {
headerMyCounty = myMyCountyList [ 1 ]
}
//If there is no data after the marker, we just skip the data.
continue
}
//QSL Message
//QSL Message
if regexpHeaderQslMsg . MatchString ( eachline ) {
if regexpHeaderQslMsg . MatchString ( eachline ) {
myQslMsgList := regexpHeaderQslMsg . Split ( eachline , - 1 )
myQslMsgList := regexpHeaderQslMsg . Split ( eachline , - 1 )
@ -283,6 +295,7 @@ func LoadFile(inputFilename string, isInterpolateTime bool) (filleFullLog []LogL
previousLogLine . MyPOTA = headerMyPOTA
previousLogLine . MyPOTA = headerMyPOTA
previousLogLine . MySOTA = headerMySOTA
previousLogLine . MySOTA = headerMySOTA
previousLogLine . MyGrid = headerMyGrid
previousLogLine . MyGrid = headerMyGrid
previousLogLine . MyCounty = headerMyCounty
previousLogLine . QSLmsg = headerQslMsg //previousLogLine.QslMsg is redundant
previousLogLine . QSLmsg = headerQslMsg //previousLogLine.QslMsg is redundant
previousLogLine . Nickname = headerNickname
previousLogLine . Nickname = headerNickname