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