panic: interface conversion: interface is nil, not bsoncodec.ValueEncoder
|
|
goroutine 35 [running]:
|
go.mongodb.org/mongo-driver/bson/bsoncodec.(*typeEncoderCache).LoadOrStore(...)
|
/Users/preston.vasquez/Developer/mongo-go-driver/bson/bsoncodec/codec_cache.go:45
|
go.mongodb.org/mongo-driver/bson/bsoncodec.(*Registry).storeTypeEncoder(0x14000144c40?, {0x1043ae578?, 0x1043919c0?}, {0x0?, 0x0?})
|
/Users/preston.vasquez/Developer/mongo-go-driver/bson/bsoncodec/registry.go:416 +0x7c
|
go.mongodb.org/mongo-driver/bson/bsoncodec.(*Registry).LookupEncoder(0x14000144c40, {0x1043ae578, 0x1043919c0})
|
/Users/preston.vasquez/Developer/mongo-go-driver/bson/bsoncodec/registry.go:411 +0x1f4
|
go.mongodb.org/mongo-driver/bson/bsoncodec.(*StructCodec).describeStructSlow(0x14000132100, 0x1043a67c0?, {0x1043ae578, 0x104392640}, 0x0, 0x0)
|
/Users/preston.vasquez/Developer/mongo-go-driver/bson/bsoncodec/struct_codec.go:515 +0x1fc
|
go.mongodb.org/mongo-driver/bson/bsoncodec.(*StructCodec).describeStruct(0x14000132100, 0x1?, {0x1043ae578?, 0x104392640}, 0xd8?, 0x2b?)
|
/Users/preston.vasquez/Developer/mongo-go-driver/bson/bsoncodec/struct_codec.go:483 +0xa0
|
go.mongodb.org/mongo-driver/bson/bsoncodec.(*StructCodec).EncodeValue(0x14000132100, {0x14000144c40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, ...)
|
/Users/preston.vasquez/Developer/mongo-go-driver/bson/bsoncodec/struct_codec.go:145 +0xc8
|
go.mongodb.org/mongo-driver/bson.(*Encoder).Encode(0x140000a6030, {0x104392640?, 0x1400008e020})
|
/Users/preston.vasquez/Developer/mongo-go-driver/bson/encoder.go:119 +0x264
|
go.mongodb.org/mongo-driver/bson.MarshalAppendWithContext({0x14000144c40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, {0x1044a76a0, ...}, ...)
|
/Users/preston.vasquez/Developer/mongo-go-driver/bson/marshal.go:208 +0x1f4
|
go.mongodb.org/mongo-driver/bson.MarshalAppendWithRegistry(...)
|
/Users/preston.vasquez/Developer/mongo-go-driver/bson/marshal.go:142
|
go.mongodb.org/mongo-driver/bson.MarshalWithRegistry(0x14000144c40, {0x104392640, 0x1400008e020})
|
/Users/preston.vasquez/Developer/mongo-go-driver/bson/marshal.go:96 +0x84
|
go.mongodb.org/mongo-driver/bson.Marshal(...)
|
/Users/preston.vasquez/Developer/mongo-go-driver/bson/marshal.go:52
|
main.main.func1()
|
/Users/preston.vasquez/Developer/technical/workshop/mongo/bson/weirerrorthing/main.go:15 +0x80
|
created by main.main
|
/Users/preston.vasquez/Developer/technical/workshop/mongo/bson/weirerrorthing/main.go:13 +0x3c
|
exit status 2
|