Update distribute-readme.go

pull/9/head
하훌 2020-04-07 02:20:38 +09:00 committed by GitHub
parent 1c2e93b3fe
commit 324a6b7734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -71,7 +71,9 @@ func main() {
if reflect.TypeOf(m[t]).String() == "string" {
m[t] = tool
} else {
m[t] = mergeKeys(tool, m[t].(map[string]interface{}))
tool = mergeKeys(tool, m[t].(map[string]interface{}))
//fmt.Println(tool)
m[t] = tool
}
}
readme := ""
@ -90,10 +92,11 @@ func main() {
if reflect.TypeOf(val).String() != "string" {
} else {
vd := vv.(map[string]interface{})[val]
readme = readme + vd.(string) + "<br>"
readme = readme + vd.(string) + "\r\n"
}
}
}
fmt.Println(readme)
top, err := os.Open("template/head.md")
if err != nil {
fmt.Println(err)