I'm trying to display the output in HTML templates instead of JSON. Somehow it is not working as expected. I tried in different ways, but no luck. Any help would be great. Here is my code
c.HTML(
http.StatusOK,
"templates/index.html",
gin.H{
"status": http.StatusOK,
"data": _books,
},
)