package codecutil
import "go.mongodb.org/mongo-driver/internal/codecutil"
Index ¶
- Variables
- func MarshalValue(val interface{}, encFn EncoderFn) (bsoncore.Value, error)
- type EncoderFn
- type MarshalError
Variables ¶
Functions ¶
func MarshalValue ¶
MarshalValue will attempt to encode the value with the encoder returned by the encoder function.
Types ¶
type EncoderFn ¶
EncoderFn is used to functionally construct an encoder for marshaling values.
type MarshalError ¶
type MarshalError struct { Value interface{} Err error }
MarshalError is returned when attempting to transform a value into a document results in an error.
func (MarshalError) Error ¶
func (e MarshalError) Error() string
Error implements the error interface.
Source Files ¶
encoding.go
- Version
- v1.17.2
- Published
- Jan 7, 2025
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 1 minute ago –
Tools for package owners.