Documentation
¶
Overview ¶
Package fileutils any file based interactions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeadersToRegex ¶
HeadersToRegex simple function to convert a slice of string headers to a regex
headers: slice of headers to use in a "form style" regex, for example:
Headers: HEADER1,HEADER2,HEADER3 Regex returned: `HEADER1: (.*)\n\nHEADER2: (.*)\n\HEADER3: (.*)`
func WriteTextOutput ¶
WriteTextOutput to write txt output based on a channel to a file fileName: name of write to write to, c: channel
Types ¶
type CsvWriter ¶
type CsvWriter struct {
// contains filtered or unexported fields
}
CsvWriter custom type for safe concurrent access for csv writing Source: https://markhneedham.com/blog/2017/01/31/go-multi-threaded-writing-csv-file/
func NewCsvWriter ¶
NewCsvWriter creates new writer and returns reference
Click to show internal directories.
Click to hide internal directories.