- Golang was designed by Robert Greisemer, Rob Pike, and Ken Thompson at Google in 2007.
- Go is supported on several operating systems like Dragonfly BSD, FreeBSD, Linux, macOS, NetBSD, OpenBSD, Plan 9, Solaris, and Windows.
- Go is built on the assurance of simplicity while not sacrificing the ability to perform many things.
- There’s no need to place commas (,) to end statements, but there is a need to stick to specific syntax to ensure that the code is translated correctly.
- Garbage collections exist which automatically perform memory management and permit deferred execution of functions.
- One of the unique and interesting things about Golang are Goroutines. It is a function that is executed concurrently with other goroutines in the same address space. Compared to other threads, Goroutines are significantly lighter in memory making coding in Golang faster and more efficient.
- ‘Defer’ is a special keyword in Golang where it delays the execution of a function until nearby functions return.
- Go possesses a special built-in function known as ‘make’ which is used to create slices, channels, and maps.
- If any variable or package is declared but not used then, an error will appear in the Go compiler which is very convenient.
- The establishment of communication between Goroutines exists in pipes known as ‘channels’.
- Go provides 2 features capable of replacing class inheritance. The first being embedding and the second being interfaces.
- Sometimes there is a need to import packages only for their side effects, without exploiting their use like: import _ “net/ http/ pprof”. This makes it very convenient and useful to code in Go.
- No matter the size of the enterprise – startups or large retail enterprises, software developers use Go in roughly the same way. No need to perform any adjustments.
- Debugging is peculiarly satisfying using modules and cloud services.
Got some more interesting facts you want to share with us? Share it with us by commenting down below!