format
This commit is contained in:
parent
8788eea4f0
commit
645f40f0c6
8 changed files with 32 additions and 37 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Reference in a new issue