title: How to convert a string to an array in Golang?
body: <p>How to convert a string to an array of strings with one element (i.e. that string) in Go effectively. </p>
  
  <p>For example:</p>
  
  <pre><code>var s string
  s = "This is a string"
  </code></pre>
  
  <p>to </p>
  
  <pre><code>["This is a string"]
  </code></pre>
  
  <p>Obviously, one way would be to make an array of strings and initialize the first element as that string but I am looking for an effective approach.</p>