title: How to pass multiple variables to Go HTML template
body: <p>I am new to golang. I would like to pass multiple variables to html.
  So I have a type like:</p>
  
  <pre><code>type Variables struct { 
      UserNames    []string  
      Checks       []string
  }
  </code></pre>
  
  <p>pagevarible with passed the correct values</p>
  
  <pre><code>var PageVars Variables
      PageVars = Variables{
          UserNames: ulist,
          Checks: check,
      }
      log.Println("ulist",ulist)
      err = tpl.Execute(w, PageVars) //execute the template and pass it to index page
      if err != nil { // if there is an error
          log.Print("template executing error: ", err) //log it on terminal
      }
  </code></pre>
  
  <p>And I want to pass both UserNames and Checks to html template, something like:</p>
  
  <pre><code>{{range .UserNames .Checks}}
  {{.UserNames}}: &lt;input type="checkbox" name="email" value={{. UserNames}} {{.Checks}}/&gt;&lt;br /&gt;
  {{end}}
  </code></pre>
  
  <p>But it didn't work out.
  Can anyone correct my syntax?
  Thanks a lot.</p>