channel with struct as type golang code example Example: golang struct with channel type ChanStruct struct { chMessages chan string }