deserialize as time

This commit is contained in:
Ryan Cavicchioni 2020-03-24 00:26:22 -05:00
parent d3c56d3aa8
commit 7d8e5f8b92
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -4,6 +4,7 @@ import (
//"crypto/tls"
"encoding/json"
"net/http"
"time"
)
const (
@ -49,7 +50,7 @@ type (
Group Selector `json:"group"`
Location Selector `json:"location"`
Product Product `json:"product"`
LastSeen string `json:"last_seen"`
LastSeen time.Time `json:"last_seen"`
SecondsLastSeen float64 `json:"seconds_last_seen"`
}