Missed docs

This commit is contained in:
Nikita Tokarchuk
2020-03-09 23:48:26 +01:00
parent 0b313e82fb
commit 6e5dccbc96
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -38,6 +38,7 @@ func (l *StreamLoader) DecodeNext() error {
return nil
}
// Decode function decodes the current cursor document into the target
func (l *StreamLoader) Decode() error {
base.Reset(l.target)
+1
View File
@@ -50,6 +50,7 @@ type JSONBased interface {
SetID(id primitive.D)
}
// InterfaceBased is an interface for documents that have custom declated type for the _id field
type InterfaceBased interface {
GetID() interface{}
SetID(id interface{})