modulepackage
0.0.0-20201109133439-c1860e7127b8
Repository: https://github.com/andromedha/golang-testapi.git
Documentation: pkg.go.dev
# README
golang-testapi
A small test application to learn golang and improve my skills. It is an api to connect to a local mongo db server. It is my first try to use an interface in golang.
I use the offical mongo db driver to connect, which can be found https://github.com/mongodb/mongo-go-driver .
# Functions
CreateDocument create a new document on the database.
DeleteDocument remove one document from the database.
FindDocument find and return one document from the database.
GetCollectionHandler show all Collections.
GetDataBasesHandler show all Databases.
SetDatabaseData save database and collection name for future request.
UpdateDocument update one given document on the database.