Closed channel value in go

Home Forums Go Programming Closed channel value in go

Viewing 7 posts - 1 through 7 (of 7 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.

    #5515 Reply
    Humble
    Keymaster
    This reply has been marked as private.
    #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 7 posts - 1 through 7 (of 7 total)
Reply To: Closed channel value in go
Your information: