title: Convert a byte array to a string array
body: <p>In the following method, I attempted to redefine the string method on the IPAddr type by appending bytes to an array of string</p>
  
  <pre><code>type IPAddr [4]byte
  
  func (ip IPAddr) String() string {
      var s []string
      for _, i := range ip {
          s = append(s, i)
      }
      return fmt.Sprintf(strings.Join(s, "."))
  }
  </code></pre>
  
  <blockquote>
    <p>cannot use i (type byte) as type string in append</p>
  </blockquote>
  
  <p><a href="https://play.golang.org/p/MbSac2RvLQ3" rel="noreferrer">playground</a></p>