title: Golang embed html from file
body: <p>How can I do in Golang if I have an HTML file like this: </p>
  
  <pre><code>&lt;html&gt;
    &lt;head lang="en"&gt;
  
    &lt;/head&gt;
    &lt;body&gt;
      &lt;header&gt;{{.Header}}&lt;/header&gt;
      &lt;div class="panel panel-default"&gt;
  
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and I want to embed a part of code into to header tags from an other file like this: </p>
  
  <pre><code>&lt;div id="logo"&gt;&lt;/div&gt;&lt;div id="motto"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>My try: </p>
  
  <pre><code>header, _ := template.ParseFiles("header.html")
  c := Content{Header: ""}
  header.Execute(c.Header, nil)
  
  index := template.Must(template.ParseFiles("index.html"))
  index.Execute(w, c)
  </code></pre>