title: Golang html template cannot call javascript file in html file
body: <p>I bundle React app with Webpack after I call it in HTML file. However, it error when I using Golang and html/template to view HTML file.<br/><br/>
  My HTML file: index.html<br/><br/></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;meta charset="UTF-8"&gt;
          &lt;title&gt;Note App&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="root"&gt;&lt;/div&gt;
          &lt;script src="public/bundle.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><br/><br/>
  My Golang file: index.go<br/><br/></p>
  
  <pre><code>package main
  
  import (
      "net/http"
      "html/template"
      "path/filepath"
  )
  
  func handle(w http.ResponseWriter, r *http.Request) {
      fp := filepath.Join("views", "index.html")
      t := template.Must(template.ParseFiles(fp))
      t.Execute(w, nil)
  }
  
  func main() {
      http.HandleFunc("/", handle)
      http.ListenAndServe(":8080", nil)
  }
  </code></pre>