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
                            
                        
                          
                          - File
- Golang
- Callback
- windows
- package
- API
- write
- json
- Python
- go
- Close
- Linux
- 책
- http
- C
- 영화
- 리뷰
- bitcoin
- tcp
- c++
- mutex
- GO 언어
- JavaScript
- window
- FOR
- range
- Sync
- channel
- go언어
- install
                            Archives
                            
                        
                          
                          - Today
- Total
Code Habit
Go ) goto 본문
go언어에서 goto 키워드를 이용해 정해진 레이블로 곧장 이동할 수 있다.
package main
import "fmt"
func main() {
    goto LABEL
    fmt.Println("여기 실행 안됨")
LABEL:
    fmt.Println("여기 실행 됨")
}goto문을 통해 소스의 실행 순서를 LABEL로 건너 띄었기 때문에 사이에 있는 코드는 실행되지 않는다.
