title: How to include css to go lang app
body: <p>I have problem with adding some CSS to my web app, which is created with go lang. <code>main.go</code> and html file are included to root directory and <code>style.css</code> is included to <code>root/css</code> directory</p>
  
  <p>my .*go code is </p>
  
  <pre><code>package main
  
  import (
      "html/template"
      "net/http"
  )
  
  func main(){
  
      http.HandleFunc("/home", mainViewHandler)
      http.ListenAndServe(":8080", nil)
  }
  
  func mainViewHandler(responseWriter http.ResponseWriter,request *http.Request){
  
      t, _ := template.ParseFiles("main.html")
      t.Execute(responseWriter, 0)
  }
  </code></pre>
  
  <p>and html code is</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
      &lt;head&gt;
          &lt;link rel="stylesheet" href="todo/style.css"&gt;
          &lt;meta charset="UTF-8"&gt;
          &lt;title&gt;Main Page&lt;/title&gt;
  
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;h2&gt;Take your choice&lt;/h2&gt;
          &lt;a href="/edit"&gt;Edit&lt;/a&gt;
          &lt;a href="/add"&gt;Add&lt;/a&gt;
          &lt;a href="/list"&gt;List&lt;/a&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>