<commit_before>Fault
======
[![GoDoc](https://godoc.org/github.com/surullabs/fault?status.png)](https://godoc.org/github.com/surullabs/fault) [![Build Status](https://drone.io/github.com/surullabs/fault/status.png)](https://drone.io/github.com/surullabs/fault/latest) [![Coverage Status](https://coveralls.io/repos/surullabs/fault/badge.png?branch=master)](https://coveralls.io/r/surullabs/fault?branch=master)

Fault is a tiny library that helps with package internal error handling in Go.

It supports a simple idiom for reducing the amount of package internal error
handling. It allows you to panic with a Fault instance in package internal code.
This is then recovered using a defer for a all exported methods, which then return
an error extracted from the fault. As an example, if you were to be reading data
from a file and then writing it you could use

	import (
		"github.com/surullabs/fault"<commit_msg>fault is no longer tiny<commit_after>Fault
======
[![GoDoc](https://godoc.org/github.com/surullabs/fault?status.png)](https://godoc.org/github.com/surullabs/fault) [![Build Status](https://drone.io/github.com/surullabs/fault/status.png)](https://drone.io/github.com/surullabs/fault/latest) [![Coverage Status](https://coveralls.io/repos/surullabs/fault/badge.png?branch=master)](https://coveralls.io/r/surullabs/fault?branch=master)

Fault is a library that helps with package internal error handling in Go.

It supports a simple idiom for reducing the amount of package internal error
handling. It allows you to panic with a Fault instance in package internal code.
This is then recovered using a defer for a all exported methods, which then return
an error extracted from the fault. As an example, if you were to be reading data
from a file and then writing it you could use

	import (
		"github.com/surullabs/fault"
{'fraction_non_alphanumeric': 0.11469142545057345, 'fraction_numerical': 0.0, 'mean_word_length': 5.026315789473684, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, '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': '6376375', 'n_tokens_mistral': 573, 'n_tokens_neox': 535, 'n_words': 182}