jsonbased

package
v2.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Primary

type Primary struct {
	ID primitive.D `bson:"_id" json:"_id"`
}

Primary is a structure with object as an _id field

func (*Primary) GetID

func (p *Primary) GetID() (id primitive.D)

GetID returns an _id

func (*Primary) SetID

func (p *Primary) SetID(id primitive.D)

SetID sets an _id

Jump to

Keyboard shortcuts

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