slice 복사

Go

[Go] golang slice안에 특징

https://ultimate-go-korean.github.io/translation/#go-%EC%96%B8%EC%96%B4%EC%9D%98-%EC%97%AD%ED%95%99%EC%A0%81-%EA%B3%A0%EC%B0%B0language-mechanics The Ultimate Go Study Guide ultimate-go-korean.github.io 이 글은 위 전자책을 보고 정리한 내용입니다 Go에서 Slice를 생성하면 3개의 워드(word) 데이터 구조가 만들어집니다 1번 워드는 배열의 위치를 가르키며 2번 워드는 슬라이스의 길이를 3번 워드는 슬라이스의 총 용량을 보통 배열(Array)에서는 [10]이라면 타입에 따라 4byte(int)*10 = 40byte를 용량, 길이는 10이라고 ..

Sleeg
'slice 복사' 태그의 글 목록