Whitespace is the space between characters made up of space, tab, and newline characters.
A comment is a section of code ignored by the compiler that can be used
as a note for anyone reading the code. The two types of comments are
// (which goes to the end of the line) and
The files in the
fmt package would begin with
In order to use the
Exit function from the
os package, you would need to import the
import "os" and then
invoke it with
Modifying the program to print with your name:
"Hello, my name is Caleb"
Integers are stored on a computer by using a base-2, binary number system.
The largest eight-digit number in binary is 255.
Program that computes 32,132 × 42,452 and prints it to terminal:
A string is a sequence of characters. You can find the length of a string using the
len function (
The value of the expression is
Two ways to create a new variable are:
var x = 5 or
x := 5.
The value of
x after running the equation is
Scope is the range of places a variable can be used. Scope in Go is determined lexically using blocks, so look for the nearest curly braces.
Unlike a variable, the value of a constant is determined at compile time and cannot change throughout the lifetime of a program.