mirror of
https://github.com/beego/bee.git
synced 2024-11-21 18:40:54 +00:00
fix map init
This commit is contained in:
parent
3e3b0359c0
commit
965e4d8803
@ -53,7 +53,7 @@ func (a *Annotation) Annotate(comment string) []map[string]interface{} {
|
||||
kvs := strings.Split(line, " ")
|
||||
key := kvs[0]
|
||||
values := strings.Split(strings.TrimSpace(line[len(kvs[0]):]), "\n")
|
||||
annotation := make(map[string]interface{}, 0)
|
||||
annotation := make(map[string]interface{})
|
||||
annotation[key] = handleWhitespaceValues(values)
|
||||
results = append(results, annotation)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user