mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
When working with Go channels you must not set it to nil or else the channel will block forever. It will not panic reading from a nil chan but it blocks. The correct way to do this is to create the channel then close it as the correct results to the caller will be returned. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>