This commit is contained in:
nemunaire 2016-01-23 13:19:28 +01:00
commit 645f40f0c6
8 changed files with 32 additions and 37 deletions

View file

@ -7,15 +7,15 @@ import (
"time"
)
type TimeHandler struct{
type TimeHandler struct {
StartTime time.Time
Duration time.Duration
}
type timeObject struct {
Started int64 `json:"st"`
Time int64 `json:"cu"`
Duration int `json:"du"`
Started int64 `json:"st"`
Time int64 `json:"cu"`
Duration int `json:"du"`
}
func (t TimeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {