mongodb-driver.first-step

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

README

DATABASE SERVER - TO MONGODB-DRIVER FRAMEWORK

(first step - get acquainted with MongoDB")

database with mongodb-driver framework (level 1)

How can this project run?

We use the files "go.mod" and "go.sum" to contain the necessary configuration packages. If the project you pull requires importing packages, open a terminal at the project root directory and enter the following command:

  $ go mod download

Next, run directly with the command:

  $ go run * .go

Or build into a program with the command:

  $ CGO_ENABLE=0 go build --ldflags "-extldflags \"-static\"-s -w" -o bin/application -trimpath ./*.go

The program after being built will be saved in -o bin/application. Request the system to execute with the command:

  $ /bin/bash -c bin/application

Documents:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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