Every gopher works very often with slice. Let’s go from source code to understand some details we should take care in slice manipulation.
slice in golang is a very important type to perform operations on collection data. When you have experience with other programming languages, will find the design of slice has some differences when compared to similar type in other programming languages. These differences make us need to pay attention to memory allocation by doing slice manipulation in order to get better performance or avoid some mistakes. Let’s start from source code to discuss more details in slice manipulation.
About Yu-Lang Chu
fullstack engineer