[Go/Golang] Go언어 array 배열 선언 및 크기 구하기
이번엔 배열 선언이다. https://gobyexample.com/arrays Go by Example: Arrays In Go, an array is a numbered sequence of elements of a specific length. package main import "fmt" func main() { Here we create an array a that will hold exactly 5 ints. The type of elements and length are both part of the array’s type. By default an arr gobyexample.com 예제 코드는 아래와 같다. package main import "fmt" func main() { var a ..
2022.06.11