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:
| #!/bin/bash | |
| # Copyright (c) <2018> <Maksym Rusynyk> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # |
| #!/bin/bash | |
| # v 2.7 | |
| # https://gist.github.com/mbierman/dd45821b53d5d22147cef217f0c0fe95 | |
| # Variables | |
| update="false" | |
| reboot="false" | |
| hostname=$(hostname) | |
| docker="/.dockerenv" |
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: