diff --git a/goextVersion.go b/goextVersion.go index e08c894..4b02755 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.161" +const GoextVersion = "0.0.162" -const GoextVersionTimestamp = "2023-06-11T16:35:20+0200" +const GoextVersionTimestamp = "2023-06-11T16:38:47+0200" diff --git a/wmo/reflection.go b/wmo/reflection.go index af776fd..57be754 100644 --- a/wmo/reflection.go +++ b/wmo/reflection.go @@ -75,8 +75,8 @@ func (c *Coll[TData]) initFields(prefix string, rval reflect.Value, m map[string continue } if strings.Contains(bsonkey, ",") { - bsonkey = bsonkey[:strings.Index(bsonkey, ",")] bsontags = strings.Split(bsonkey[strings.Index(bsonkey, ",")+1:], ",") + bsonkey = bsonkey[:strings.Index(bsonkey, ",")] } if bsonkey == "-" { continue