db

package
v0.0.0-...-5d84e4f Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() (*mongo.Collection, *mongo.Collection)

func InsertOne

func InsertOne(collection *mongo.Collection, data primitive.D) interface{}

Types

type Voca

type Voca struct {
	ID       primitive.ObjectID `form:"id" json:"_id" bson:"_id"`
	Word     string             `form:"word" json:"word" bson:"word"`
	Type     string             `form:"type" json:"type" bson:"type"`
	Meaning  string             `form:"meaning" json:"meaning" bson:"meaning"`
	Synonym  []string           `form:"synonym[]" json:"synonym" bson:"synonym"`
	Antonym  []string           `form:"antonym[]" json:"antonym" bson:"antonym"`
	Examples []string           `form:"examples[]" json:"examples" bson:"examples"`
}

Jump to

Keyboard shortcuts

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