title: Render HTML files in Go Gin
body: <p>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</p>
  <pre><code>c.HTML(
      http.StatusOK,
      &quot;templates/index.html&quot;,
      gin.H{
          &quot;status&quot;: http.StatusOK,
          &quot;data&quot;: _books,
      },
  )
  </code></pre>