shared

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewObjectId

func NewObjectId() primitive.ObjectID

Types

type IndexField

type IndexField struct {
	Name string
	Asc  bool
}

索引字段定义

func NewIndexField

func NewIndexField(name string, asc bool) *IndexField

创建新索引定义

type ObjectId

type ObjectId = primitive.ObjectID

func ObjectIdFromHex

func ObjectIdFromHex(hex string) (ObjectId, error)

Jump to

Keyboard shortcuts

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