/go-by-example

Primary LanguageGoMIT LicenseMIT

go-by-example

A selective tour of Go by example, with emphasis on concurrent programming.

Concepts covered:

Architecture

This code implements the following simulated data pipeline:

alt text

Compiling

go build -o app

Running

  1. Start the server: ./app
  2. Make sure netcat is installed
  3. Send sample TCP packets:
    for ((x=0; x<10; x++)); do echo -e "$x" | netcat localhost 8080 -c && sleep 1; done