title: How to join a slice of strings into a single string?
body: <pre><code>package main
  
  import (
  "fmt"
  "strings"
  )
  
  func main() {
  reg := [...]string {"a","b","c"}
  fmt.Println(strings.Join(reg,","))
  }
  </code></pre>
  
  <p>gives me an error of:</p>
  
  <blockquote>
    <p>prog.go:10: cannot use reg (type [3]string) as type []string in argument to strings.Join</p>
  </blockquote>
  
  <p>Is there a more direct/better way than looping and adding to a var?</p>