v0.0.150
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"gogs.mikescher.com/BlackForestBytes/goext/langext"
|
||||
"gogs.mikescher.com/BlackForestBytes/goext/reflectext"
|
||||
"reflect"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func (c *Coll[TData]) init() {
|
||||
@@ -32,7 +33,13 @@ func (c *Coll[TData]) initFields(prefix string, rval reflect.Value, idxarr []int
|
||||
}
|
||||
|
||||
bsonkey, found := rsfield.Tag.Lookup("bson")
|
||||
if !found || bsonkey == "-" {
|
||||
if !found {
|
||||
continue
|
||||
}
|
||||
if strings.Contains(bsonkey, ",") {
|
||||
bsonkey = bsonkey[:strings.Index(bsonkey, ",")]
|
||||
}
|
||||
if bsonkey == "-" {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user