use time keyword constant
This commit is contained in:
@@ -39,7 +39,6 @@ const (
|
||||
KeyDof = "dof"
|
||||
KeyPlane = "plane"
|
||||
KeyAircraft = "aircraft"
|
||||
KeyOther = "other"
|
||||
KeyTime = "time"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -107,7 +107,7 @@ func parseAirportAndTime(s string) (airport string, arrivalTime time.Time) {
|
||||
|
||||
func parseDof(text string) time.Time {
|
||||
value := getFields(DofValueRex, text)
|
||||
dof, _ := time.Parse("060102", value["time"])
|
||||
dof, _ := time.Parse("060102", value[KeyTime])
|
||||
return dof
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user