# Download

### Configuration

```
download:
  workers: 5
  part_size: 5m
  buf_size: 200k
```

* workers: number of goroutines.
* part\_size: part size
* buf\_size: download buffer size

### Reader

* **HttpReader**\
  Http Request Reader
* **OssReader**\
  Aliyun Oss Reader
* **S3Reader**\
  Amazon s3 Reader

### Download Files

{% content-ref url="download/downloading-http-file" %}
[downloading-http-file](https://langwan.gitbook.io/langgo-v0.5.x/english/components/download/downloading-http-file)
{% endcontent-ref %}

{% content-ref url="download/downloading-oss-file" %}
[downloading-oss-file](https://langwan.gitbook.io/langgo-v0.5.x/english/components/download/downloading-oss-file)
{% endcontent-ref %}

{% content-ref url="download/downloading-s3-file" %}
[downloading-s3-file](https://langwan.gitbook.io/langgo-v0.5.x/english/components/download/downloading-s3-file)
{% endcontent-ref %}

### Tune Workers

```go
func main() {
    langgo.Run(&download.Instance{})
    download.Get().Tune(10)
}
```
