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...
Markdown supported · ⌘↵ to post
No responses yet.