-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
90 lines (81 loc) · 1.54 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"strings"
)
type Book struct {
id int
mergeResults *mergeResults
}
type mergeResults struct {
block string
chart string
hat string
sell string
success string
company string
subtract string
event string
particular string
deal string
swim string
term string
opposite string
wife string
shoe string
shoulder string
spread string
arrange string
camp string
invent string
cotton string
born string
determine string
quart string
nine string
truck string
noise string
level string
chance string
gather string
shop string
stretch string
throw string
shine string
property string
column string
molecule string
wrong string
gray string
repeat string
require string
broad string
prepare string
salt string
nose string
plural string
anger string
claim string
continent string
}
func main() {
fmt.Println("Let's do this!")
}
// func merge(file string) {
// csvFile, _ := os.Open("people.csv")
// }
func getMergeKey() map[string]map[string]string {
var mergeKey map[string]map[string]string
file, _ := ioutil.ReadFile("dictionary/languageDict.json")
err := json.Unmarshal([]byte(file), &mergeKey)
if err != nil {
log.Println(err)
}
return mergeKey
}
func getLanguage(fileName string) string {
return strings.Fields(fileName)[0]
}