Closed channel value in go

Humble Devassy Chirammal Forums Go Programming Closed channel value in go

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5514 Reply
    Humble
    Keymaster

    When a channel is closed, the value read on the channel will be the zero value of the data type of the channel. Like 0 for int, "" for string..etc.

    #5516 Reply
    Humble
    Keymaster
    This reply has been marked as private.
    #5517 Reply
    Humble
    Keymaster
    This reply has been marked as private.
    #5518 Reply
    Humble
    Keymaster
    This reply has been marked as private.
    #5519 Reply
    Humble
    Keymaster
    This reply has been marked as private.
    #5520 Reply
    Humble
    Keymaster
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Reply #5517 in Closed channel value in go
Your information: