This repository is for learning purpose, containing algorithms.
The GO programming language version go1.14.4 need to be installed
in the system. Go to this link and follow
the instruction to install. To check GO version on the environment, run the following command:
go version
example output:
go version go1.14.4 linux/amd64
The Dep, for dependency management tool for Go, version devel should be installed.
Go to this link and follow the instruction to install based on the system.
To check the installation, we can check its version by running the following command on the terminal:
dep version
Example of the output:
dep:
version : devel
build date :
git hash :
go version : go1.14.4
go compiler : gc
platform : linux/amd64
features : ImportDuringSolve=false
In this project root directory, run the following command to test:
make test
To show a more complete coverage and uncovered lines:
make test_coverage
You can check into test_coverage.html file in root project directory. This command also will open interactive coverage tool in your browser if you have one.
In this project root directory, run the following command:
make build
There will be a new directory named out with an executable file go-algorithm as the result of the built project.
In order to run this project, after building this project, execute the following command in this project root directory:
make run