Life As A Software Engineer

s VS s[:]

s[:] is always a slice. But s can be one of these

  • A array or
  • A pointer to array or
  • A slice

https://play.golang.org/p/r2nc-FAmjg


Share