Skip to content

Commit 52252bd

Browse files
committed
use number instead of *
1 parent 7ab5177 commit 52252bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/actions/reader.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ func BuildReadme(folders map[string]interface{}, num int) string {
215215
} else if key == "name" {
216216
} else if _, ok := dir.([]interface{}); ok {
217217

218-
response += fmt.Sprintf("%s* %s\n\n", tabs, key)
218+
response += fmt.Sprintf("%s1. %s\n\n", tabs, key)
219219
response += generateReadme(dir.([]interface{}), num+1)
220220
} else if _, ok := dir.(map[string]interface{}); ok {
221-
response += fmt.Sprintf("%s* %s\n\n", tabs, key)
221+
response += fmt.Sprintf("%s1. %s\n\n", tabs, key)
222222
response += BuildReadme(dir.(map[string]interface{}), num+1)
223223
}
224224
}
@@ -237,7 +237,7 @@ func generateReadme(filesToBookmark []interface{}, num int) string {
237237
for _, bookmark := range filesToBookmark {
238238
if reflect.TypeOf(bookmark).Kind() == reflect.String {
239239
name, url := lookupLinkName(bookmark.(string))
240-
response += fmt.Sprintf("%s* [%s](%s)\n\n", tabs, name, url)
240+
response += fmt.Sprintf("%s1. [%s](%s)\n\n", tabs, name, url)
241241
} else if reflect.TypeOf(bookmark).Kind() == reflect.Map {
242242
var name string
243243
var url string
@@ -248,7 +248,7 @@ func generateReadme(filesToBookmark []interface{}, num int) string {
248248
_, url = lookupLinkName(value.(string))
249249
}
250250
}
251-
response += fmt.Sprintf("%s* [%s](%s)\n\n", tabs, name, url)
251+
response += fmt.Sprintf("%s1. [%s](%s)\n\n", tabs, name, url)
252252
}
253253
}
254254

0 commit comments

Comments
 (0)