title: golang tabwriter does not format appropriately
body: <p>I am following the common <a href="https://blog.el-chavez.me/2019/05/05/golang-tabwriter-aligned-text/" rel="nofollow noreferrer">pattern</a> about <code>go</code>'s <a href="https://golang.org/pkg/text/tabwriter/" rel="nofollow noreferrer"><code>tabwriter</code></a></p>
  
  <p>where the relevant writer is initialized and used to print formatted output to stdout.</p>
  
  <p>Here is my code snippet:</p>
  
  <pre><code>w := tabwriter.NewWriter(os.Stdout, 20, 30, 1, '\t', tabwriter.AlignRight)
  
  
  for _, v := range listProjectsResponse.Projects {
      parent := fmt.Sprintf("projects/%s/locations/-", v.ProjectId)
      resp, err := containerService.Projects.Locations.Clusters.List(parent).Do()
      if err != nil {
          log.Fatalf(err.Error())
      }
      if len(resp.Clusters) &gt; 0 {
          fmt.Println("---------------------------------------------------------")
          fmt.Printf("Project\t%s\n", v.ProjectId)
          fmt.Println("---------------------------------------------------------")
          fmt.Fprintf(w, "Cluster\t\tNode Count\n")
          //w.Flush()
          for _, p := range resp.Clusters {
              fmt.Fprintf(w, "%s\t%d\t", p.Name, p.CurrentNodeCount)
              //w.Flush()
          }
          w.Flush()
          fmt.Printf("\n")
      }
  }
  </code></pre>
  
  <p>However it seems that the common distance between column is not being respected, as shown in the following output:</p>
  
  <pre><code>Project my-project-1
  ---------------------------------------------------------
  Cluster         Node Count
  my-cluster-1  3
  ---------------------------------------------------------
  Project my-project-2
  ---------------------------------------------------------
  Cluster         Node Count
  my-newest-project-1       2
  ---------------------------------------------------------
  Project my-project-3
  ---------------------------------------------------------
  Cluster         Node Count
  anothercluster 1
  </code></pre>
  
  <p>Why isn't each column keeping a fixed width (which I assume based on the initialization of the relevant writer should be 30 chars long?).
  Where is the misconfiguration in the above code?</p>
  
  <p><strong>edit</strong>:</p>
  
  <p>What I would expect, is that each column has a fixed with, i.e. the second column (the node count) always appears in the same position (column)  as in</p>
  
  <pre><code>Project my-project-1
  ---------------------------------------------------------
  Cluster         Node Count
  my-cluster-1              3
  ---------------------------------------------------------
  Project my-project-2
  ---------------------------------------------------------
  Cluster          Node Count
  my-newest-project-1       2
  ---------------------------------------------------------
  Project my-project-3
  ---------------------------------------------------------
  Cluster         Node Count
  anothercluster           1
  </code></pre>