<commit_before># multipartbuilder [![GoDoc](https://godoc.org/github.com/mxmCherry/multipartbuilder?status.svg)](https://godoc.org/github.com/mxmCherry/multipartbuilder) [![Build Status](https://travis-ci.org/mxmCherry/multipartbuilder.svg?branch=master)](https://travis-ci.org/mxmCherry/multipartbuilder) [![Go Report Card](https://goreportcard.com/badge/github.com/mxmCherry/multipartbuilder)](https://goreportcard.com/report/github.com/mxmCherry/multipartbuilder)

Package multipartbuilder provides simple streaming multipart builder.

# Usage

```go
	builder := New()
	builder.AddField("field", "value")

	// or use chaining:
	builder.
		AddReader("reader", strings.NewReader("Some reader")).
		AddFile("file", "path/to/file.bin")

	// finalize builder (it should not be used anymore after this);
	// any errors will be returned on bodyReader.Read():
	contentType, bodyReader := builder.Build()

	// for proper cleanup, returned bodyReader should be used at least once,
	// so at least close it (multiple closes are fine):
	defer bodyReader.Close()

	// finally, use built reader:
	resp, err := http.Post("https://test.com/", contentType, bodyReader)
	if err != nil {
		// handle error
	}
```<commit_msg>Even more slight doc changes<commit_after># multipartbuilder [![GoDoc](https://godoc.org/github.com/mxmCherry/multipartbuilder?status.svg)](https://godoc.org/github.com/mxmCherry/multipartbuilder) [![Build Status](https://travis-ci.org/mxmCherry/multipartbuilder.svg?branch=master)](https://travis-ci.org/mxmCherry/multipartbuilder) [![Go Report Card](https://goreportcard.com/badge/github.com/mxmCherry/multipartbuilder)](https://goreportcard.com/report/github.com/mxmCherry/multipartbuilder)

Simple streaming multipart builder for Go (Golang).

# Usage

```go
	builder := New()
	builder.AddField("field", "value")

	// or use chaining:
	builder.
		AddReader("reader", strings.NewReader("Some reader")).
		AddFile("file", "path/to/file.bin")

	// finalize builder (it should not be used anymore after this);
	// any errors will be returned on bodyReader.Read():
	contentType, bodyReader := builder.Build()

	// for proper cleanup, returned bodyReader should be used at least once,
	// so at least close it (multiple closes are fine):
	defer bodyReader.Close()

	// finally, use built reader:
	resp, err := http.Post("https://test.com/", contentType, bodyReader)
	if err != nil {
		// handle error
	}
```
{'fraction_non_alphanumeric': 0.1525072523829258, 'fraction_numerical': 0.0, 'mean_word_length': 4.931203931203931, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1103668', 'n_tokens_mistral': 798, 'n_tokens_neox': 749, 'n_words': 176}