title: How to run html with css using golang
body: <p>everyone, I have a problem with including css in html files through golang file.
  The output on the local server is only the html file but no css, how can I fix it?</p>
  
  <p>Maybe problem with the way I use template package, so could you explain how to make routing differently? Example: When you go <strong><a href="http://localhost:8080/login" rel="nofollow noreferrer">http://localhost:8080/login</a></strong> and it would show <strong>login.html</strong>. I saw net/http documentation about it but either I'm blind or I just try to found wrong things there. 
  All files are in the same directory</p>
  
  <p><strong>welcome.html</strong></p>
  
  <pre><code>&lt;!Doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;Website&lt;/title&gt;
      &lt;link rel="stylesheet" href="style.css" &gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;link rel="stylesheet" href="style.css"&gt;
  &lt;form action=""&gt;
      &lt;center&gt;&lt;h1&gt;Enter&lt;/h1&gt;&lt;/center&gt;
          &lt;div class="group"&gt;
              &lt;label for=""&gt;Login:&lt;/label&gt;
              &lt;input type="text"&gt;
          &lt;/div&gt;
          &lt;div class="group"&gt;
              &lt;label for=""&gt;Password:&lt;/label&gt;
              &lt;input type="password"&gt;
          &lt;/div&gt;
      &lt;div class="group"&gt;
              &lt;center&gt;&lt;button&gt;Come in&lt;/button&gt;&lt;/center&gt;
          &lt;/div&gt;
      &lt;center&gt;&lt;a href="regist.html" class="link"&gt;Registration&lt;/a&gt;&lt;/center&gt;
      &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>style.css</strong></p>
  
  <pre><code>@charset "utf-8";
  /* CSS Document */
  body
  {
      font-family: "Comic Sans MS";
      background-image: url(images/bg.jpg);
      background-repeat: repeat ;
      background-size: 80px 80px ;
  }
  h1
  {
  margin: 0;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 3px solid rgba(58,87,15,0.80);
  }
  form 
  {
      margin : 0 auto;
      background: rgba(123,170,52,0.76);
      width: 450px;
      height: 350px;
      padding: 20px;
      box-shadow: 2px 2px 5px rgba(0,0,0,0.82);
  }
  .group
  {
      margin: 16px ;
      padding: 5px;
  
  }
  label
  {
      padding-left: 10px;
      text-transform: uppercase;
  }
  input
  {
      margin-top: 5px;
      height: 30px;
      width: 400px;
      border-radius:20px/20px;
      border: none;
      padding-left: 15px;
      font-size: 18px;
      box-shadow: 2px 2px 5px rgba(0,0,0,0.82);
  }
  
  input:focus{
      border: 2px solid #264503;
      transform: translateX(15px);
      width: 385px;
  }
  button{
      font-family: "Comic Sans MS";
      cursor: pointer;
      padding: 10px 20px;
      height: 40px;
      color:aliceblue;
      background: rgba(21,73,3,1.00);
      border: none;
      text-transform: uppercase;
      font-size: 15px;
      box-shadow: 2px 2px 5px rgba(0,0,0,0.82);
  }
  button:hover{
      font-weight: bold;
      transform: scale(1.1);
  }
  
  .link{
      font-family: "Comic Sans MS";
      cursor: pointer;
      padding: 10px 20px;
      height: 40px;
      color:aliceblue;
      background: rgba(21,73,3,1.00);
      border: none;
      text-transform: uppercase;
      font-size: 15px;
      box-shadow: 2px 2px 5px rgba(0,0,0,0.82);
      text-decoration: none; 
  
  }
  </code></pre>
  
  <p><strong>goFile.go</strong></p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "html/template"
      "net/http"
  )
  
  func welcome(w http.ResponseWriter, r *http.Request) {
  
      tmpl := template.Must(template.ParseFiles("welcome.html"))
  
      tmpl.Execute(w, nil)
  }
  
  func login(w http.ResponseWriter, r *http.Request) {
      tmpl := template.Must(template.ParseFiles("login.html"))
  
      tmpl.Execute(w, nil)
  }
  
  func main() {
      http.HandleFunc("/", welcome)
      http.HandleFunc("/login", login)
  
      fmt.Println("Listening...")
      http.ListenAndServe(":8080", nil)
  }
  </code></pre>
  
  <p>**The output is following: **
  <a href="https://i.stack.imgur.com/fwVxO.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fwVxO.jpg" alt="output"></a></p>
  
  <p><strong>Summarize:</strong> How to display page with css using golang net/http or html/template packages?
  How to do routing between pages properly? Sorry for mistakes. Thanks in advance, guys! </p>