Conversion between array and slice
In Go, array is a fixed length of continuous memory with specified type, while slice is just a reference which points to an underlying array. Since they are different types, they can't assign value each other directly. See the following example:
pa...
blog.cloudnativefolks.org1 min read