module
Version:
v0.2.8
Opens a new window with list of versions in this module.
Published: Jan 25, 2025
License: MIT
Opens a new window with license information.
README
¶
Mongo Go
Provides easy to use API to operate Mongo db.
How to use it?
go get github.com/lhdhtrc/mongo-go
package main
import (
mongo "github.com/lhdhtrc/mongo-go/pkg"
"go.uber.org/zap"
)
// How to define a table
type TestEntity struct {
mongo.Table
}
func main() {
logger, _ := zap.NewProduction()
instance := mongo.New(logger, &mongo.Config{})
}
Finally
- If you feel good, click on star.
- If you have a good suggestion, please ask the issue.
Directories
¶
Click to show internal directories.
Click to hide internal directories.