Documentation
¶
Index ¶
- func AppendKeyValue(b *bytes.Buffer, key string, value interface{}, quoteEmptyField bool)
- func AppendValue(b *bytes.Buffer, value interface{}, quoteEmptyField bool)
- func AsBytes() ([]byte, error)
- func AsCSVIntoMap() *map[string]string
- func AsString() (string, error)
- func Bytes(buf []byte)
- func CheckIfTerminal(w io.Writer) bool
- func LastLineWithSeek(filepath string, amt int) ([]string, error)
- func LineScanner(maxBuf, maxScanTokenSize int) (string, error)
- func NeedsQuoting(text string, quoteEmptyField bool) bool
- func Open(uri string) (io.ReadCloser, error)
- func ReadLine(br *bufio.Reader) (string, error)
- func WriteOut(data []byte, filePath string) (int, error)
- func WriteOutAppend(data []byte, filePath string)
- func WriteOutStr(data, filePath string) (int, error)
- func WriteOutString(filePath string) *os.File
- func WriteTempFileOfSize(filesize int64, fileprefix string) (fileName string, fileSize int64)
- type Reader
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendKeyValue ¶
func AppendValue ¶
func AsCSVIntoMap ¶
AsCSVIntoMap read csv file into map[string]string
func CheckIfTerminal ¶
func LineScanner ¶
func NeedsQuoting ¶
func Open ¶
func Open(uri string) (io.ReadCloser, error)
Open returns an io.ReadCloser representing the contents of the source specified by a uri.
func ReadLine ¶
ReadLine Line returns a single line (without the ending \n) from the input buffered reader. An error is returned if` there is an error with the buffered reader.
func WriteOutAppend ¶
WriteOutAppend write out and append []byte data to designated file path
func WriteOutStr ¶
WriteOutStr write out string data to designated file path
func WriteOutString ¶
WriteOutString send file to create and returns File object to use
Types ¶
type Reader ¶
type Reader interface { Bytes(buf []byte) AsBytes() ([]byte, error) AsString() (string, error) LineScanner(maxBuf, maxScanTokenSize int) (string, error) AsCSVIntoMap() *map[string]string AsCSVIntoOrderedMap() (*orderedmap.OrderedMap, error) ReadCSVFromFile(filePath string, skipHeader bool, headAr []string) (*data.Table, error) }
Click to show internal directories.
Click to hide internal directories.