func captureStdout(f func()) string {
	old := os.Stdout
	r, w, _ := os.Pipe()
	os.Stdout = w
	f()
	w.Close()
	os.Stdout = old
	var buf bytes.Buffer
	io.Copy(&buf, r)
	return buf.String()
}
Credit to https://gist.github.com/mindscratch/0faa78bd3c0005d080bf
package main
import (
	"bytes"
	filet "github.com/Flaque/filet"
	testUtil "github.com/Flaque/thaum/thaum/testingutil"
	"github.com/stretchr/testify/assert"
	"io"
	"os"
	"path/filepath"
	"testing"
)