Helper functions for parallel flatfile manipulation, in golang