ObjectID is a MongoDB ObjectID implementation for Go. See the MongoDB ObjectID documentation for more information.
go get github.com/pkg-id/objectid
package main
import (
"fmt"
"github.com/pkg-id/objectid"
)
func main() {
id := objectid.New()
fmt.Println(id)
}