deserialize as time
This commit is contained in:
parent
d3c56d3aa8
commit
7d8e5f8b92
@ -4,6 +4,7 @@ import (
|
|||||||
//"crypto/tls"
|
//"crypto/tls"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -49,7 +50,7 @@ type (
|
|||||||
Group Selector `json:"group"`
|
Group Selector `json:"group"`
|
||||||
Location Selector `json:"location"`
|
Location Selector `json:"location"`
|
||||||
Product Product `json:"product"`
|
Product Product `json:"product"`
|
||||||
LastSeen string `json:"last_seen"`
|
LastSeen time.Time `json:"last_seen"`
|
||||||
SecondsLastSeen float64 `json:"seconds_last_seen"`
|
SecondsLastSeen float64 `json:"seconds_last_seen"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user