primitive

package
v0.0.0-...-f41e87c Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Id

type Id string

func NewObjectId

func NewObjectId() Id

func (Id) Equals

func (id Id) Equals(anotherId Id) bool

func (Id) IsValid

func (id Id) IsValid() bool

func (Id) MarshalBSONValue

func (id Id) MarshalBSONValue() (bsontype.Type, []byte, error)

func (Id) String

func (id Id) String() string

func (*Id) UnmarshalBSONValue

func (id *Id) UnmarshalBSONValue(t bsontype.Type, raw []byte) error

type IdList

type IdList []Id

func (IdList) Add

func (i IdList) Add(id Id) []Id

func (IdList) Remove

func (i IdList) Remove(id Id) []Id

Jump to

Keyboard shortcuts

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