package statistic import ( "encoding/json" "net/http" "imuslab.com/Zoarxy/mod/utils" ) /* Handler.go This script handles incoming request for loading the statistic of the day */ func (c *Collector) HandleTodayStatLoad(w http.ResponseWriter, r *http.Request) { js, _ := json.Marshal(c.DailySummary) utils.SendJSONResponse(w, string(js)) }