objectid

package
Version: v1.125.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(s string) (bson.ObjectId, bool)

Parse parses the given string and returns a bson.ObjectId and true if the given value is valid, otherwise it will return an empty bson.ObjectId and false.

This is copy of the bson.ObjectIdHex function, but prevents doing double decode in the classic procedure: if bson.IsObjectId(x) { bson.ObjectIdHex(x} }

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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