This repository was initiated as a framework to initiate a project written in GO language.
Requirement:
- install project basic dependency
- create project diretory
- create README.md file
- create Makefile
- create .gitignore
- initiate .git
GNU Make version 3.81
should be installed on the system. For MacOS, you can go to this link and follow the instruction if it is not yet installed. To check if it's already installed as well as the version, run the following command:
make --version
Ruby is only required for Install only. Ruby version ruby 2.3.7
should be installed on the system. Go to this link and follow the instruction to install it. To check if the installation is success, you can check the version by running the following command:
ruby --version
Note: As this is currently in development, tested system is MacOS 10.14.6
.
This functionality will install basic requirements for GO. The following are list that will be installed:
- Homebrew (for MacOS)
- GO programming language
- GO Dep
- Git
Along the execution, some error may occur when the required program is already installed. So long the error is only about that, no need to worry.
This functionality will initiate GO project as specified. Along the execution, this will ask the user about some information. The following are the questions:
-
Repository Location, is the location where the projet will reside and should be similar to the one in repository server. For example it will be stored in
github.com
, then writegithub.com
this in the prompt without prefixhttp://www.
norhttps://www.
nor suffix/
. Another example, if the project will reside in a group namedirainia
insidegithub.com
, then writegithub.com/irainia
in the input. -
Project Name, will be combined with repository location as a directory (in local) for the project. Example, if the repository location (in the server) is
github.com
and the project name isgo-init
, then the combined name will begithub.com/go-init
. And it is highly recommended (according to GO documentation here) to store the project in that URL. -
Project Description, is the brief description of the project. Make it as brief as possible. You can change it later in project itself.
The next step, it will create additional files such as Makefile
and README
. The last step will notify where the location of the project will be stored.