id

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

id

Go Tools for Manipulating MongoDB ObjectIDs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ID

func ID(value interface{}) primitive.ObjectID

Converts a value into an ObjectID. If the value cannot be converted, then a new ObjectID is returned

func Slice

func Slice(value interface{}) []primitive.ObjectID

Converts a value into a slice of ObjectIDs

func SliceOfString

func SliceOfString(value []primitive.ObjectID) []string

func Sort added in v0.1.1

func Sort(value []primitive.ObjectID) []primitive.ObjectID

Types

This section is empty.

Jump to

Keyboard shortcuts

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