title: What is the difference between tmp and html in Go?
body: <p>Im recently learning Golang and Im trying to create a website with Go as backend.
  I done it correctly with a framework called <code>Martini</code> but I want to do it without frameworks.</p>
  
  <p>Can anyone tell me whats the difference between html and tmpl? Because I want to call a page that loads a table with DB rows and I guess that first I have to understand what is the difference.</p>
  
  <p>This is what I tried:</p>
  
  <p>server.go:</p>
  
  <pre><code>package main
  
  import (
      "io/ioutil"
      "net/http"
      "html/template"
  )
  
  func main(){
  
      http.HandleFunc("/index/"), viewIndex)
      http.ListenAndServe(":8080", nil)
  
  }
  
  func viewIndex(w http.ResponseWriter, r *http.Request){
  
      t, _ := template.ParseFiles("index.html")
  
  }
  </code></pre>
  
  <p>I dont know what is the structure but I put the index.html on : /templates/index.html:</p>
  
  <p>Contains <code>Hello World</code></p>
  
  <p>Thank You in Advance.</p>