Versions in this module Expand all Collapse all v1 v1.3.1 Dec 1, 2022 Changes in this version + var ErrImpossibleCastToArray = errors.New("impossible to cast input to array") + var ErrInvalidTypeForObjectID = errors.New("ObjectID must be string (24 characters) or array (12 bytes)") + var ErrNoArrayType = errors.New("value is not valid array") + type ForceCast interface + Cast func(value interface{}) (interface{}, error) + ZeroValue func() interface{} + type ObjectIDArrayCast struct + func (o ObjectIDArrayCast) Cast(input interface{}) (interface{}, error) + func (o ObjectIDArrayCast) ZeroValue() interface{} + type ObjectIDCast struct + func (o ObjectIDCast) Cast(input interface{}) (interface{}, error) + func (o ObjectIDCast) ZeroValue() interface{}