Math in Go

Performing Math in Go is like many other programing languages in many ways. Of course, the standard mathematical symbols apply: Operator Description + Addition – Subtraction * Multiplication / Quotient % Remainder & Bitwise AND | Bitwise OR ^ Bitwise XOR &^ Bit clear (AND NOT) << Left shift >> Right shift (logical) The Math…

A First App in Go

After you install Go, we need to check to see if it is configured properly. Things work better with a Go Path set. This is usually under your home directory. In Windows that would be C:\Users\<username>\go most likely. You can check this by going to the command prompt and typing: This is going to do…

About Go (Golang) A History and Purpose for a New Language

Go was developed by a team of engineers at Google, primarily Robert Griesemer, Rob Pike, and Ken Thompson, who released it publicly in 2009. The primary motivation behind Go’s creation was to address the limitations the team observed in other programming languages, especially when building large, scalable systems at Google. Many of these limitations were…

Installing Go

When installing Go, you have a couple of options. Source Code First, you can install from source code, which means you will need to compile the source code. This allows for a lot of flexibility. However, the code base itself is written in Go, so you will need to download a binary of the Go…

Classes in TypeScript

We’ve already briefly looked at classes in TypeScript and classes in JavaScript, so let’s delve a little deeper now. Since TypeScript is just JavaScript, with some added on bits, we can create a class as we normally would with the adding of types as you see below. However, we can overload our constructors to see…