Skip to content

Commit 0621cfc

Browse files
committed
Rename the project
1 parent 2d0b444 commit 0621cfc

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

README.md

+6-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
stackexchange-xml-converter
1+
# stackexchange-xml-converter
32

43
CLI tool that allows you to convert [Stack Exchange data dumps](https://archive.org/download/stackexchange) from `XML` to `CSV` format, which is more suitable for importing to the different databases.
54

@@ -8,9 +7,7 @@ Table of contents
87
* [Getting started](#getting-started)
98
* [Download database dump](#download-database-dump)
109
* [Extract](#extract)
11-
* [Building of
12-
stackexchange-xml-converter](#building-of-
13-
stackexchange-xml-converter)
10+
* [Building of stackexchange-xml-converter](#building-of-stackexchange-xml-converter)
1411
* [XML to CSV converting](#xml-to-csv-converting)
1512
* [RDBMS schema examples](#rdbms-schema-examples)
1613
* [License](#license)
@@ -58,21 +55,17 @@ Clone & build `
5855
stackexchange-xml-converter` converter:
5956

6057
```shell
61-
$ git clone https://github.com/SkobelevIgor/
62-
stackexchange-xml-converter
63-
$ cd
64-
stackexchange-xml-converter/
58+
$ git clone https://github.com/SkobelevIgor/stackexchange-xml-converter
59+
$ cd stackexchange-xml-converter/
6560
$ go build
6661
```
6762

6863
### XML to CSV converting
6964

7065

71-
Now you have `
72-
stackexchange-xml-converter` executable file. Let’s convert XML files:
66+
Now you have `stackexchange-xml-converter` executable file. Let’s convert XML files:
7367
```
74-
./
75-
stackexchange-xml-converter -—source-path=../xml --store-to-dir=../csv
68+
./stackexchange-xml-converter -—source-path=../xml --store-to-dir=../csv
7669
```
7770
#### List of possible flags:
7871

encoders/csvEncoder.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package encoders
22

33
import "fmt"
44

5-
// CSVEncoder interface
6-
type CSVEncoder interface {
5+
// Encoder interface
6+
type Encoder interface {
77
// GetCSVHeaderRow returns CSV header for the correspondig encoder type.
88
// WARNING! Order is crucial!
99
// Fields will be written to the CSV file in the same order this function returns them.
@@ -16,7 +16,7 @@ type CSVEncoder interface {
1616
}
1717

1818
// NewEncoder returns a pointer to the new encoder according to requested type
19-
func NewEncoder(typeName string) (c CSVEncoder, err error) {
19+
func NewEncoder(typeName string) (c Encoder, err error) {
2020
switch typeName {
2121
case "Badges":
2222
c = &Badge{}

0 commit comments

Comments
 (0)