Documentation ¶
Overview ¶
Test how to pass pointers to array via a channel, change it, and check if the change is reflected in the Go routine where the array was created.
Create an array with values within one Go routine, pass a pointer to that value on a channel. Pick it up from the channel in another Go routine, change it. Then print them all out in the first go routine to see if it was changed.
Click to show internal directories.
Click to hide internal directories.