There is a compressed text file(.gz) has some set of warning, error and information details.
Sample content.
Oct 25 06:58:51 : For info, please visit https://www.det.org
Oct 25 06:58:51 : Copyright 2004-2018 Internet Systems Consortium.
Oct 25 06:58:51 : All rights reserved.
Oct 25 06:58:51 : ERROR: Host declarations are global.
Oct 25 06:58:51 : WARNING: Host declarations are global
I need to get the warning and error complete line from the text file without uncompressed using golang. How can develop an algorithm for this?