Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bmatsuo/csvutil
/ functions
Functions
51 in github.com/bmatsuo/csvutil
⨍
Functions
51
◇
Types & classes
4
↓ 7 callers
Function
NewConfig
Return a freshly allocated Config that is initialized to DefaultConfig.
config.go:40
↓ 6 callers
Function
formatReflectValue
(x reflect.Value)
row.go:234
↓ 5 callers
Method
Do
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 callers
Method
Flush
Flush any buffered data to the underlying io.Writer.
writer.go:168
↓ 4 callers
Function
csvTestString1
()
csv_test.go:36
↓ 4 callers
Method
formatReflectValue
(i int, x reflect.Value)
row.go:55
↓ 3 callers
Method
HasError
A wrapper for the test r.Error != nil
row.go:42
↓ 3 callers
Method
IsSep
(rune rune)
config.go:50
↓ 3 callers
Method
LooksLikeComment
(line string)
config.go:46
↓ 3 callers
Function
NewReader
Create a new reader object.
reader.go:29
↓ 3 callers
Method
ReadRow
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 callers
Function
StringReader
(s string, c *Config)
csv_test.go:14
↓ 3 callers
Function
csvTestString2
()
csv_test.go:63
↓ 2 callers
Function
BufferWriter
(c *Config)
csv_test.go:19
↓ 2 callers
Function
NewWriter
Create a new CSV writer with the default field seperator and a buffer of a default size.
writer.go:26
↓ 2 callers
Method
RemainingRows
Reads any remaining rows of CSV data in the underlying io.Reader.
reader.go:155
↓ 2 callers
Method
WriteRow
* 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 callers
Method
WriteRows
Write multple CSV rows at once.
writer.go:173
↓ 2 callers
Function
cleanTestFile
(f string, T *testing.T)
file_test.go:15
↓ 2 callers
Function
csvTestInstance1
()
csv_test.go:45
↓ 2 callers
Method
write
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 callers
Method
writeField
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 callers
Function
Do
Iteratively apply a function to Row objects read from an io.Reader.
file.go:87
↓ 1 callers
Method
DoN
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 callers
Method
HasEOF
A wrapper for the test r.Error == os.EOF
row.go:37
↓ 1 callers
Function
Read
Read rows from an io.Reader until EOF is encountered.
file.go:65
↓ 1 callers
Function
ReadFile
Read a named CSV file into a new slice of new string slices.
file.go:71
↓ 1 callers
Method
RemainingRowsSize
Like csvr.RemainingRows(), but allows specification of the initial row buffer capacity to avoid unnecessary reallocations.
reader.go:161
↓ 1 callers
Function
Write
Write a slice of rows (string slices) to an io.Writer object.
file.go:33
↓ 1 callers
Method
WriteComments
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 callers
Function
WriteFile
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 callers
Function
formatValue
(x interface{})
row.go:285
↓ 1 callers
Method
formatValue
(i int, x interface{})
row.go:128
↓ 1 callers
Method
readLine
()
reader.go:51
Function
DoFile
Iteratively apply a function to Row objects read from a named file.
file.go:93
Method
Format
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
Function
FormatRow
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
Method
LineNum
Returns the number of lines of input read by the Reader
reader.go:96
Function
NewReaderSize
Create a new reader with a buffer of a specified size.
reader.go:40
Function
NewWriterSize
Create a new CSV writer using a buffer of at least n bytes. See bufio.NewWriterSize(io.Writer, int) (*bufio.NewWriter).
writer.go:39
Method
ReadRows
Read rows into a preallocated buffer. Return the number of rows read, and any error encountered.
reader.go:138
Function
TestComments
END TEST1
reader_test.go:74
Function
TestConfig
Some rediculously dumb tests of Config methods, which are very simple.
config_test.go:16
Function
TestDo
(T *testing.T)
reader_test.go:11
Function
TestReadFile
(T *testing.T)
file_test.go:60
Function
TestReadRow
TEST1 - Simple 3x3 matrix w/ comma separators and w/o excess whitespace.
reader_test.go:29
Function
TestWriteFile
(T *testing.T)
file_test.go:36
Function
TestWriteRow
TEST1 - Simple 3x3 matrix w/ comma separators and w/o excess whitespace.
writer_test.go:13
Function
TestWriterComments
END TEST1
writer_test.go:48
Method
WriteFields
Write a slice of field values with a trailing field seperator (no '\n'). Returns any error incurred from writing.
writer.go:77
Function
csvTestInstance2
()
csv_test.go:75