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