func ExampleIOThrottlerPool() {
	pool := iothrottler.NewIOThrottlerPool(iothrottler.BytesPerSecond * 100)
	defer pool.ReleasePool()
	file, err := os.Open("/dev/zero")
	if err != nil {
		return
	}
	defer file.Close()
	throttledFile, err := pool.AddReader(file)
	if err != nil {
		return
	}
	var zeros bytes.Buffer
	copied, err := io.CopyN(&zeros, throttledFile, 200)
	if err != nil {
	}
	fmt.Printf("Copied %v bytes\n", copied)
}
Basic usage of a IOThrottlerPool to throttle reading from a file
package iothrottler_test
import (
	"bytes"
	"fmt"
	"io"
	"io/ioutil"
	"net"
	"net/http"
	"os"
	"github.com/efarrer/iothrottler"
)