Beginning Programming Lesson 02

Variables, Functions, Importing, Pointers, and Scope.

Now that you have your setup ready to go, we can start writing some code! Note that we are just touching the surface of the topics covered in this lesson, but the sooner you start writing code, the easier it will become to understand the topics better. Plus you are more likely to continue, if you feel like you are accomplishing something, rather than learning more and more theory. You can download the file here. I suggest creating a folder to store all the files for this and future examples. Also create a sub-folder for each individual lesson, since they all will be named main.go. Open it up in VS Code, and open a terminal. Make sure you are in the correct folder/directory by using the pwd command. Use the cd command to change directories if needed. Then go ahead and run it by executing:

[Read More]