GitBucket
4.23.0
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
sample-golang
/
01_hello
Transfer to URL with SHA
36 commits
branch:
master
Switch branches
×
master
01_hello
/
goroutine
/
latest commit
6e5a74193b
yhornisse
authored
on 9 Oct 2021
..
README.md
fix memo
3 years ago
channel.go
add channel sample
3 years ago
channel2.go
add channel sample2
3 years ago
goroutine.go
add goroutine sample
3 years ago
parallel.go
add sample
3 years ago
pipeline.go
add pipeline sample
3 years ago
select.go
add select sample
3 years ago
README.md
MEMO
最初に呼び出されるgoroutineはmain goroutine
make(chan string)
でバッファなし、
make(chan string, 10)
のように書けばバッファあり バッファがいっぱい場合は受信されて空きができるまで待たされる。
chanのゼロ値はnil