About the author
There's multiple ways of declaring a variable in Go.
You can do this:
var VarName TypeName
So, for example,
var s string
declares a variable s with a type of string. If I want to declare multiple variables, I can do this:
var (s stringx int)
which declares s as string, and x as an integer, or declare it one at a time:
var s stringvar x int
I can also declare a variable and assign it at the same time.
s := "Hello world"
declares s as a variable of type string and assigns it the value of "Hello world".
If s is already declared, then assigning is as simple as:
s = "Hello world"
Similarly, if I want to declare and assign s to the value of a function returning a string:
s := FuncReturningString()
or
s = FuncReturningString() if s is declared as a string previously.
How to free more space on your home drive by redirecting the location for SDKs in RAD Studio
Learn the command line used to compile System.pas in Delphi
A method to design records so that they're allocated on a specific byte boundary, such as 16 bytes, 512 bytes, 4096 bytes, etc.
Learn why the map is cool in Go!