modulepackage
0.0.0-20221227143500-3ba81f626fb0
Repository: https://github.com/rrgaya/mongodb-wrapper-go.git
Documentation: pkg.go.dev
# README
Mongodb Wrapper Go
O package mongodb wrapper Go é um wrapper do mongo-go-driver que define as coleções e as APIs CRUD nelas.
package your_pagkage
import (
mwgo "github.com/rrgaya/mongodb-wrapper-go"
)
// MWGo NewColletion já faz trata o parse da url e também gerencianmento de context
collection, err := mwgo.NewCollection("your_url_connection", "your_database", "your_collections")
if err != nil{
log.Println("error on connections with mongodb.")
}
collection.InsertOne({})
# Packages
No description provided by the author
# Functions
NewCollection retorna uma collection.
# Constants
No description provided by the author