Skip to content

pkg-id/objectid

Repository files navigation

ObjectID

GoDoc Go Report Card

ObjectID is a MongoDB ObjectID implementation for Go. See the MongoDB ObjectID documentation for more information.

Installation

go get github.com/pkg-id/objectid

Usage

package main

import (
	"fmt"
	"github.com/pkg-id/objectid"
)

func main() {
	id := objectid.New() 
	fmt.Println(id)
}