I have a Go program that consumes "live" input from a shell pipe, eg:
tail -f some/file | my-program
my-program is an
my-program