Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 자료구조와함께배우는알고리즘입문
- iterator
- 서버설정
- 데비안
- 목록처리
- 네트워크 설정
- 코드로배우는스프링부트웹프로젝트
- 알파회계
- 스프링부트핵심가이드
- 구멍가게코딩단
- baeldung
- 리눅스
- ㅒ
- 자료구조와 함께 배우는 알고리즘 입문
- 페이징
- 스프링 시큐리티
- /etc/network/interfaces
- GIT
- network configuration
- d
- 처음 만나는 AI수학 with Python
- resttemplate
- Kernighan의 C언어 프로그래밍
- 친절한SQL튜닝
- 이터레이터
- 코드로배우는스프링웹프로젝트
- 처음 만나는 AI 수학 with Python
- 티스토리 쿠키 삭제
- 선형대수
- 자바편
Archives
- Today
- Total
bright jazz music
Go -maps 본문
package main
import (
"fmt"
)
func main() {
nico := map[string]string{"name": "nico", "age": "12"}
//[key] [value]
fmt.Println(nico)
}
//자바스크립트나 파이선의 오브젝트와 유사함. 같지는 않음
package main
import (
"fmt"
)
func main() {
nico := map[string]string{"name": "nico", "age": "12"}
//[key] [value]
for key, _ := range nico {
fmt.Println(key)
}
}
===
name
age
package main
import (
"fmt"
)
func main() {
nico := map[string]string{"name": "nico", "age": "12"}
//[key] [value]
for _, value := range nico {
fmt.Println(value)
}
}
===
nico
12'Language > Go' 카테고리의 다른 글
| Go -map type에 메소드 추가하기(Search) (1) | 2021.02.19 |
|---|---|
| Go - 메소드2 (Go의 메소드 내부적 호출/ struct에 메소드 추가하기) (1) | 2021.02.18 |
| Go - method(기본사용법, 리시버, 에러처리 등, Withdraw) (0) | 2021.02.18 |
| Go - Account + NewAccount 캡술화/ func를 이용한 초기화 (0) | 2021.02.18 |
| Go - struct (0) | 2021.02.18 |
Comments
