// WriteOkResponse writes StatusOK response and the passed data to the given ResponseWriter.
WriteOkResponse writes StatusOK response and the passed data to the given ResponseWriter.
// WriteOkResponse writes StatusOK response and the passed data to the given ResponseWriter .
func WriteOkResponse(wr http.ResponseWriter, data interface{}) {
	wr.WriteHeader(http.StatusOK)
	resp, _ := json.Marshal(data)
	wr.Write(resp)
}
func WriteOkResponse ( wr http . ResponseWriter , data interface { } ) { wr . WriteHeader ( http . StatusOK ) resp , _ := json . Marshal ( data ) wr . Write ( resp ) }
WriteOkResponse writes StatusOK response and the passed data to the given ResponseWriter.
WriteOkResponse writes StatusOK response and the passed data to the given ResponseWriter .