func StateHandler(cache *util.Cache) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		res := cache.State()
		for _, k := range []string{"availableVersion", "releaseNotes"} {
			delete(res, k)
		}
		jsonResponse(w, r, res)
	}
}
// StateHandler returns current charge mode
StateHandler returns current charge mode
// StateHandler returns current charge mode
func StateHandler(cache *util.Cache) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		res := cache.State()
		for _, k := range []string{"availableVersion", "releaseNotes"} {
			delete(res, k)
		}
		jsonResponse(w, r, res)
	}
}
func StateHandler ( cache * util . Cache ) http . HandlerFunc { return func ( w http . ResponseWriter , r * http . Request ) { res := cache . State ( ) for _ , k := range [ ] string { " " , " " } { delete ( res , k ) } jsonResponse ( w , r , res ) } }
StateHandler returns current charge mode
StateHandler returns current charge mode