Golang Commands Every Beginner Should Know

Manpreet Singh
6 min readJul 4, 2022

Welcome back! Golang is an awesome programming language with a ton of capability, if you’re new to Golang, check out the link below to learn more about it:

So, let’s talk about some of the most important Golang commands every programmer should know! Now, this syntax is fairly basic, but even if you’ve used Golang before, it doesn’t hurt to brush up on your Golang experience, let’s get started!

Prints

Starting off, one of the most important elements within Golang are print statements, these commands allow you to print something to the console, what does that mean? Think about it like this, when you checkout at a store, you look at the cash register and you’re able to see the output of your total on a screen, that is an (weird) example of a print statement! So, how do you print something with Golang? It’s easy, all you have to do is use the fmt.Print() command, here are some examples:

fmt.Print("Hello World")

The output would be

> Hello

--

--