MCPcopy Create free account

hub / github.com/bmatsuo/csvutil / functions

Functions51 in github.com/bmatsuo/csvutil

↓ 7 callersFunctionNewConfig
Return a freshly allocated Config that is initialized to DefaultConfig.
config.go:40
↓ 6 callersFunctionformatReflectValue
(x reflect.Value)
row.go:234
↓ 5 callersMethodDo
Iteratively read the remaining rows in the reader and call f on each of them. If f returns false, no more rows will be read.
reader.go:179
↓ 4 callersMethodFlush
Flush any buffered data to the underlying io.Writer.
writer.go:168
↓ 4 callersFunctioncsvTestString1
()
csv_test.go:36
↓ 4 callersMethodformatReflectValue
(i int, x reflect.Value)
row.go:55
↓ 3 callersMethodHasError
A wrapper for the test r.Error != nil
row.go:42
↓ 3 callersMethodIsSep
(rune rune)
config.go:50
↓ 3 callersMethodLooksLikeComment
(line string)
config.go:46
↓ 3 callersFunctionNewReader
Create a new reader object.
reader.go:29
↓ 3 callersMethodReadRow
Attempt to read up to a new line, skipping any comment lines found in the process. Return a Row object containing the fields read and any error encoun
reader.go:103
↓ 3 callersFunctionStringReader
(s string, c *Config)
csv_test.go:14
↓ 3 callersFunctioncsvTestString2
()
csv_test.go:63
↓ 2 callersFunctionBufferWriter
(c *Config)
csv_test.go:19
↓ 2 callersFunctionNewWriter
Create a new CSV writer with the default field seperator and a buffer of a default size.
writer.go:26
↓ 2 callersMethodRemainingRows
Reads any remaining rows of CSV data in the underlying io.Reader.
reader.go:155
↓ 2 callersMethodWriteRow
* func (csvw *Writer) WriteFieldsln(fields...string) (int, os.Error) { var n int = len(fields) var success int = 0 var err os.Error fo
writer.go:118
↓ 2 callersMethodWriteRows
Write multple CSV rows at once.
writer.go:173
↓ 2 callersFunctioncleanTestFile
(f string, T *testing.T)
file_test.go:15
↓ 2 callersFunctioncsvTestInstance1
()
csv_test.go:45
↓ 2 callersMethodwrite
Write a slice of bytes to the data stream. No checking for containment of the separator is done, so this file can be used to write multiple fields if
writer.go:52
↓ 2 callersMethodwriteField
Write a single field of CSV data. If the ln argument is true, a trailing new line is printed after the field. Otherwise, when the ln argument is false
writer.go:60
↓ 1 callersFunctionDo
Iteratively apply a function to Row objects read from an io.Reader.
file.go:87
↓ 1 callersMethodDoN
Process rows from the reader like Do, but stop after processing n of them. If f returns false before n rows have been process, no more rows will be pr
reader.go:195
↓ 1 callersMethodHasEOF
A wrapper for the test r.Error == os.EOF
row.go:37
↓ 1 callersFunctionRead
Read rows from an io.Reader until EOF is encountered.
file.go:65
↓ 1 callersFunctionReadFile
Read a named CSV file into a new slice of new string slices.
file.go:71
↓ 1 callersMethodRemainingRowsSize
Like csvr.RemainingRows(), but allows specification of the initial row buffer capacity to avoid unnecessary reallocations.
reader.go:161
↓ 1 callersFunctionWrite
Write a slice of rows (string slices) to an io.Writer object.
file.go:33
↓ 1 callersMethodWriteComments
Write a comment. Each comment string given will start on a new line. If the string is contains multiple lines, comment prefixes will be inserted at th
writer.go:137
↓ 1 callersFunctionWriteFile
Write CSV data to a named file. If the file does not exist, it is created. If the file exists, it is truncated upon opening. Requires that file permis
file.go:48
↓ 1 callersFunctionformatValue
(x interface{})
row.go:285
↓ 1 callersMethodformatValue
(i int, x interface{})
row.go:128
↓ 1 callersMethodreadLine
()
reader.go:51
FunctionDoFile
Iteratively apply a function to Row objects read from a named file.
file.go:93
MethodFormat
Iteratively take values from the argument list and assigns to them successive fields from the row object. Returns the number of row fields assigned to
row.go:218
FunctionFormatRow
Iteratively take values from the argument list and formats them (or their elements/fields) as a (list of) string(s). Returns a Row object that contain
row.go:388
MethodLineNum
Returns the number of lines of input read by the Reader
reader.go:96
FunctionNewReaderSize
Create a new reader with a buffer of a specified size.
reader.go:40
FunctionNewWriterSize
Create a new CSV writer using a buffer of at least n bytes. See bufio.NewWriterSize(io.Writer, int) (*bufio.NewWriter).
writer.go:39
MethodReadRows
Read rows into a preallocated buffer. Return the number of rows read, and any error encountered.
reader.go:138
FunctionTestComments
END TEST1
reader_test.go:74
FunctionTestConfig
Some rediculously dumb tests of Config methods, which are very simple.
config_test.go:16
FunctionTestDo
(T *testing.T)
reader_test.go:11
FunctionTestReadFile
(T *testing.T)
file_test.go:60
FunctionTestReadRow
TEST1 - Simple 3x3 matrix w/ comma separators and w/o excess whitespace.
reader_test.go:29
FunctionTestWriteFile
(T *testing.T)
file_test.go:36
FunctionTestWriteRow
TEST1 - Simple 3x3 matrix w/ comma separators and w/o excess whitespace.
writer_test.go:13
FunctionTestWriterComments
END TEST1
writer_test.go:48
MethodWriteFields
Write a slice of field values with a trailing field seperator (no '\n'). Returns any error incurred from writing.
writer.go:77
FunctioncsvTestInstance2
()
csv_test.go:75