This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| # stop script on error signal | |
| set -e | |
| # remove old deployment folders | |
| if [ -d "/home/forge/deploy" ]; then | |
| rm -R /home/forge/deploy | |
| fi | |
| if [ -d "/home/forge/backup" ]; then | |
| rm -R /home/forge/backup | |
| fi |