I have a file in S3 that is being continuously modified. I will have to read it and display it live on the stdout
.
That is, I read the first line, and if the file is modified and a second line is added, I will have to reflect those changes in my stdout
. I want all of this to happen in a single command and without running the command multiple times to read the updated file.
I need a golang functionality like bash command "tail -f <FILENAME>
" that reads a S3 file from COS.