From 324a6b77342d88d2c5859cf82bb2c448dc63a06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=98=ED=9B=8C?= Date: Tue, 7 Apr 2020 02:20:38 +0900 Subject: [PATCH] Update distribute-readme.go --- distribute-readme.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/distribute-readme.go b/distribute-readme.go index ffc1d97..5d8bf96 100644 --- a/distribute-readme.go +++ b/distribute-readme.go @@ -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) + "
" + readme = readme + vd.(string) + "\r\n" } } } + fmt.Println(readme) top, err := os.Open("template/head.md") if err != nil { fmt.Println(err)