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 versionexample output:
go version go1.14.4 linux/amd64The 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 versionExample of the output:
dep:
version : devel
build date :
git hash :
go version : go1.14.4
go compiler : gc
platform : linux/amd64
features : ImportDuringSolve=falseIn this project root directory, run the following command to test:
make testTo show a more complete coverage and uncovered lines:
make test_coverageYou 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 buildThere 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