title: Golang how to convert string slice to string?
body: <p>Here's the error:</p>
  
  <pre><code>ubuntu@buildserver:~/gospace$ go build src/runk/test.go
  # command-line-arguments
  src/runk/test.go:8: cannot convert myvar (type []string) to type string
  ubuntu@buildserver:~/gospace$
  </code></pre>
  
  <p>Here's the code:</p>
  
  <pre><code>ubuntu@buildserver:~/gospace$ cat src/run/test.go
  package main
  
  func Test() string {
  
      var myvar []string
      myvar = append(myvar, "hello world")
  
      return string(myvar)
  
  }
  
  func main() {
      Test()
  }
  ubuntu@buildserver:~/gospace$
  </code></pre>