This is a simple program that watches stdin and echos to stdout. When it finds input like bleep it echos preemptive bloop.
go build
cat input.txt | ./bleep
Sample output:
➜ bleep cat input.txt | ./bleep
testing
one
two
three
preemptive bloop
bleep
bloop
done!