gopt_mongo

package module
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

Gopt-Mongo

GoDoc Latest Version codecov Go Report Card

A version of Gopt that supports UnmarshalBSONValue() and MarshalBSONValue() for Go Mongo driver.

Documentation

Overview

Package gopt_mongo - Go package implementing Optional values for Mongo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Optional

type Optional[T any] struct {
	gopt.Optional[T]
}

func (Optional[T]) MarshalBSONValue

func (v Optional[T]) MarshalBSONValue() (bsontype.Type, []byte, error)

func (*Optional[T]) UnmarshalBSONValue

func (v *Optional[T]) UnmarshalBSONValue(btype bsontype.Type, data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL