manipulate: go.aporeto.io/manipulate/internal/objectid Index | Files

package objectid

import "go.aporeto.io/manipulate/internal/objectid"

Index

Package Files

objectid.go

func Parse Uses

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} }

Package objectid imports 2 packages (graph) and is imported by 2 packages. Updated 2019-10-08. Refresh now. Tools for package owners.