Sitemap
Cloud Security

Cybersecurity Attacks and Defenses. New blog: teriradichel.substack.com

Member-only story

Golang Syntax

9 min readSep 16, 2020

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

🔒 Related Stories: Golang

💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In my first post, I explained why you might want to use Go and some of the security benefits of Golang concurrency. Next, I explained how to install Go on an AWS EC2 Instance, including some cloud security recommendations and considerations.

If you’re new to programming, you’ll probably want to learn about if/then statements, for loops, and other general programming constructs first. These apply to almost every language. Many good programming books for beginners exist. Once you know what a switch statement does, for example, the reference below explains how to write one in Go.

As an experienced programmer, whenever I start learning a new language, I first want to understand the basic constructs and how that relates to the programming languages I already know. Each language has similarities and differences. This post does not explain how to write Go programs. That will come later. The information below is a high-level overview and reference of Golang programming syntax.

If you want to take a tour of go and try out some code in action, you can try out this nifty tour to see the constructs and type code online.

--

--

Teri Radichel
Teri Radichel

Written by Teri Radichel⁠

CEO 2nd Sight Lab | Pentesting | Research | AWS Security Hero | Masters of Infosec & Masters Software Engineering | GSE | IANS | SANS Difference Makers Award