package
0.5.36
Repository: https://github.com/devlights/try-golang.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

サンプルリスト

このディレクトリには以下のサンプルがあります。

fileexample namenote
nonstop.gogoroutines_nonstopゴルーチンを待ち合わせ無しで走らせるサンプルです
withdonechannel.gogoroutines_with_done_channeldoneチャネルを用いて待ち合わせを行うサンプルです
withwaitgroup.gogoroutines_with_waitgroupsync.WaitGroupを用いて待ち合わせを行うパターンです
withcontextcancel.gogoroutines_with_context_cancelcontext.Contextを用いて待ち合わせを行うサンプルです
withcontexttimeout.gogoroutines_with_context_timeoutcontext.Contextを用いてタイムアウト付きで待ち合わせを行うサンプルです
withcontextdeadline.gogoroutines_with_context_deadlinecontext.Context::WithDeadline を使ったサンプルです
selectnilchan1.gogoroutines_select_nil_chan_1select ステートメントで nil チャネル を使って選択されるチャネルの有効・無効を切り替えるサンプルです (1)
selectnilchan2.gogoroutines_select_nil_chan_2select ステートメントで nil チャネル を使って選択されるチャネルの有効・無効を切り替えるサンプルです (2)
usingchansemaphore.gogoroutines_using_chan_semaphoreチャネルでセマフォの動作を行わせるサンプルです
usingmutex.gogoroutines_using_mutexsync.Mutex を利用したサンプルです
workerpool.gogoroutines_workerpoolWorker Pool パターンのサンプルです
context_and_timeafterfunc.gogoroutines_context_and_timeafterfuncContextAndTimeAfterFunc は、Context と time.AfterFunc でキャンセルするサンプルです