Programming Language/Golang

Programming Language/Golang

[Golang] 고랭 배열을 선언하는 방법

package main import ( "fmt" "reflect" ) func main() { var array_1 [5]int = [5]int{1, 2, 3, 4, 5} var array_2 = [...]int{1, 2, 3, 4, 5} fmt.Println(reflect.TypeOf(array_1)) // [5]int fmt.Println(reflect.TypeOf(array_2)) // [5]int fmt.Println(array_1) // [1 2 3 4 5] fmt.Println(array_2) // [1 2 3 4 5] }

Programming Language/Golang

[Golang] 맥북에 고랭 설치하는 방법

공식 홈페이지 접속 https://go.dev/doc/install Download and install - The Go Programming Language Download and install Download and install Go quickly with the steps described here. For other content on installing, you might be interested in: 1. Go download. Click the button below to download the Go installer. Download Go Don't see your operating syste go.dev 설치 클릭 설치완료

박경태
'Programming Language/Golang' 카테고리의 글 목록 (2 Page)