Hate to be so nitpicky, but this can just be `return strings.HasSuffix(path, ".gz")`.