Quoting the man page and assuming you have a Combined Log Format:
If we would like to process all access.log.*.gz we can do one of the following:
# zcat -f access.log* | goaccess --log-format=COMBINED
OR
# zcat access.log.*.gz | goaccess --log-format=COMBINED
On Mac OS X, use gunzip -c instead of zcat.