<commit_before># Gofetch
[![Build Status](https://travis-ci.org/c4milo/gofetch.svg?branch=master)](https://travis-ci.org/c4milo/gofetch)
[![GoDoc](https://godoc.org/github.com/c4milo/gofetch?status.svg)](https://godoc.org/github.com/c4milo/gofetch)

Go library to download files from the internerds.

## Features
* Resumes downloads if interrupted.
* Allows parallel downloading of a single file by requesting multiple data chunks at once over HTTP.
* Reports download progress through a Go channel if indicated to do so.
* Supports ETags, skipping downloading a file if it hasn't changed on the server.
* Can be combined with https://github.com/cenkalti/backoff to support retries with exponential back-off


## Example

```go
package main
<commit_msg>Advertises file integrity verification in README<commit_after># Gofetch
[![Build Status](https://travis-ci.org/c4milo/gofetch.svg?branch=master)](https://travis-ci.org/c4milo/gofetch)
[![GoDoc](https://godoc.org/github.com/c4milo/gofetch?status.svg)](https://godoc.org/github.com/c4milo/gofetch)

Go library to download files from the internerds.

## Features

* Resumes downloads if interrupted.
* Allows parallel downloading of a single file by requesting multiple data chunks at once over HTTP.
* Reports download progress through a Go channel if indicated to do so.
* Supports file integrity verification if a checksum is provided.
* Supports ETags, skipping downloading a file if it hasn't changed on the server.
* Can be combined with https://github.com/cenkalti/backoff to support retrying with exponential back-off


## Example

```go
package main

{'fraction_non_alphanumeric': 0.10441267868241144, 'fraction_numerical': 0.004972032318210068, 'mean_word_length': 5.007462686567164, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1580505', 'n_tokens_mistral': 508, 'n_tokens_neox': 487, 'n_words': 162}