- Go compiler,
- Git,
- Wget ( if you're using linux )
- G++
When you're using Linux or MacOS you can choose the option of installing godemon using Godemon-installer, the second way is dwonloading the source code from releases, and building it using Go compiler.
git clone https://github.com/Godemon-simplify-your-Go-programming/Godemon-installer
cd Godemon-installer
g++ src/godemon-installer.cpp -o godemon-installer
./godemon-installer
unzip <ZIP-DIRECTORY-OF-GODEMON>
cd ./godemon
go build
mkdir ~/.godemon
mkdir ~/.godemon/bin
mv godemon ~/.godemon/bin/
Add this line export PATH=$PATH:~/.godemon/bin"
to file .zshenv
Add this line export PATH=$PATH:~/.godemon/bin"
to file .bashrc or .profile
godemon -init -name=project
cd project
Now in project's directory godemon created 2 files - go.mod
and project.json
{
"name": "project",
"arch": "amd64",
"os": "darwin",
"dev-vars": [
{
"key": "",
"value": ""
}
],
"commands": [
{
"name": "run",
"option": "mod",
"path": ""
}
],
"files": null
}
We need to create new go file and add it to watchlist list in project.json
touch main.go
godemon -addFile -name=main -path=./main.go
Now godemon is watching changes of main.go file
godemon -addFile -name=<name> -<mod/file> -path=<pathToFileOrModule>