It won't hurt to try

go map 본문

Go

go map

yongki.doki 2022. 3. 28. 00:38

얼핏보면 복잡해보이는 syntax다,,

하지만 잘보면 엄청 직관적이다.

 

map[<keyType>]<valueType>{key:value}

 

map1[key] = value

로 값을 추가할 수 있다.

300x250
300x250

'Go' 카테고리의 다른 글

go struct init  (0) 2022.04.01
go struct  (0) 2022.03.28
go array or slice  (0) 2022.03.28
go pointer  (0) 2022.03.27
go switch  (0) 2022.03.27
Comments