Golang and MongoDB Indexes
Introduction to go-mongo-driver . This as an alternative to the well-known mgo package using geospatial queries.
Getting Started
This project uses the Go programming language (Golang) and the MongoDB database engine.
Prerequisites
MongoDB is required in version 3 or higher and Go at least in version 1.12
Installing
The dependency required for this project is the MongoDB driver for Go.
- go.mongodb.org/mongo-driver/mongo
Using GOPATH
go get -u -v go.mongodb.org/mongo-driver/mongo
Using GOMODULE
go build
Deployment
Clone the repository
git clone git@github.com:orlmonteverde/mongo-golang-geo.git
Enter the repository folder
cd mongo-golang-geo
Build the binary
go build
Run the program
# In Unix-like OS
./mongo-golang-geo
# In Windows
mongo-golang-geo.exe
Built With
Authors
License
This project is licensed under the MIT License - see the LICENSE.md file for details