Using following approach we should be able to have progress information if we are not writing the contents to a file. https://rosettacode.org/wiki/Check_output_device_is_a_terminal#Go