DEV Community

Cover image for The Go Programming Language: Everything You Need To Know
Ganesh Kumar
Ganesh Kumar

Posted on • Edited on

The Go Programming Language: Everything You Need To Know

#go

Hello, I'm Ganesh. I'm working on FreeDevTools online, currently building a single platform for all development tools, cheat codes, and TL; DRs — a free, open-source hub where developers can quickly find and use tools without the hassle of searching the internet.

In this series I will be explaining Go language. I will be covering most of the topics in Go which would be normaly used in most of the applications.

Main Goal of this series is to start from scratch and end in production grade application.

If you are already familiar with Go and just want to go in deeper like want to understand internal working of Go and how it evolved this series would be a good fit for you.

In this part, I will be explaining the history of Go and how it came out.

What is Go?

an open-source, statically typed, and compiled programming language designed at Google to make it easier to build simple, reliable, and efficient software

It combines the performance of a low-level compiled language like C++ with the readability and usability of modern dynamic languages like Python.

As you learn more about Go, you will find that it is a language that is both powerful and easy to learn.

There has been many open source projects built using Go (like listmonk, Docker, Kubernetes, etc).

Simple Hello World

Before even starting with go, let's just do a simple hello world program.

I recommend you to go with officical Go tour to learn go.

Link: Go Tour

As in every language, let's just do a simple hello world program.

package main
import "fmt"
func main() {
    fmt.Println("Hello, World!")
}
Enter fullscreen mode Exit fullscreen mode

In the above code,

package main is the package name, it is the entry point of the program.

import "fmt" is the import statement, it imports the fmt package which is used to print the output.

func main() { ... } is the main function, it is the entry point of the program.

fmt.Println("Hello, World!") is the print statement, it prints the output.

In this part, we just understood the simple surface level of go and also understand the basic structure of go program.

Upcoming Part

In upcomming part I will be explaining the project structure of go project. How to setup locally and how to run it.


FreeDevTools

I’ve been building for FreeDevTools.

A collection of UI/UX-focused tools crafted to simplify workflows, save time, and reduce friction when searching for tools and materials.

Any feedback or contributions are welcome!

It’s online, open-source, and ready for anyone to use.

👉 Check it out: FreeDevTools

⭐ Star it on GitHub: freedevtools

Top comments (0)