Here is a quick sample of using goroutine, channel and waitgroup together The application will summon some workers to make a list of string uppercase
- Start the tcp server at port 8080, with a maximum workers to do the tasks
go run main.go X
- Connect to tcp server (using telnet)
telnet localhost 8080
- Provide a list of string seperated by a comma
thor,hulk,black widow,iron man,ant man
- Cheers