(filename string)
| 76 | } |
| 77 | |
| 78 | func getFileWriter(filename string) (*bufio.Writer, func(), error) { |
| 79 | output, err := os.OpenFile(filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600) |
| 80 | if err != nil { |
| 81 | return nil, nil, err |
| 82 | } |
| 83 | |
| 84 | return bufio.NewWriter(output), func() { _ = output.Close() }, nil |
| 85 | } |
| 86 | |
| 87 | func getColumnValues(columns []string, dataTypes []dataType, |
| 88 | rows *sql.Rows) ([]interface{}, error) { |
no test coverage detected