Several bug in annotation management

This commit is contained in:
2022-10-12 23:01:47 +02:00
parent aae3398701
commit f8df48338d
9 changed files with 124 additions and 13 deletions

View File

@ -41,7 +41,7 @@ func GetSlice(capacity int) []byte {
func CopySlice(src []byte) []byte {
sl := GetSlice(len(src))
copy(sl,src)
copy(sl, src)
return sl
}
@ -69,7 +69,7 @@ func GetAnnotation(values ...Annotation) Annotation {
}
if len(values) > 0 {
goutils.CopyMap(a, values[0])
goutils.MustFillMap(a, values[0])
}
return a