Round float and format to string 🔗If you’re rounding a floating point number in Go, it’s most likely you want to format it in a string.
Golang was released in 2012, making it a relatively new language when compared to competitors like Python, which was released nearly two decades prior, yet it’s managed to stay ahead of the game as not only a coveted language by employers, but also loved by programmers.
Generics in Go have been released with Go 1.18! This is one of the most eagerly-awaited features since the release of the language.
We’re super excited to bring you our next learning track: Gopher Gang. We released our Python Track and Data Structures & Algorithms Track last month, and after such a positive response, we felt we had to do the same with our Golang course content.
In 2009, the computer science world was blessed with two powerful tools: Golang and Node.js.
Golang and C# offer a unique mixture of similarities and differences, having both been inspired by the same language, C.
Scala and Golang are newer languages, only coming on to the scene after the turn of the century, but in that time they’ve managed to become two of the highest-paid languages for developers, with the industry benefiting from their fresh creation.
Golang (or Go) and Java offer an interesting comparison because despite their wide differences, there are also key similarities in how and where they’re used by programmers.
In 2007, frustrated by some of C++’s inefficiencies and overcomplicated nature, and desiring a programming language designed specifically for multi-core processors and effectively managing large projects, three Google engineers, Robert Griesemer, Rob Pike, and Ken Thompson, designed the Go language.
Needing to be a math genius to learn to code is a thing of the past.
Quicksort is an efficient sorting algorithm commonly used in production sorting implementations. Like Merge Sort, Quicksort is a divide-and-conquer algorithm.
Insertion sort builds a final sorted list one item at a time. It’s much less efficient on large lists than more advanced algorithms like quicksort or merge sort.
Merge sort is a recursive sorting algorithm and, luckily for us, it’s quite a bit faster than bubble sort.
Bubble sort is named for the way elements “bubble up” to the top of the list.
What is the “defer” keyword in Go? 🔗In the Go programming language, defer is a keyword that allows developers to delay the execution of a function until the current function returns.
Keeping track of time in code has long been every developer’s nightmare. While no language or package manages time perfectly, I think Golang does a pretty good job out-of-the-box.
The Go standard library makes concatenating strings easy. Concatenation is just a fancy word for adding strings together to make a larger string.
These two coding languages duke it out - but who’s the winner? 🔗In a world where the ability to write any code at all is a tremendous advantage, often the biggest problem coders face is knowing which language to start learning, rather than whether to learn one at all.
As a language designed for the web, Go provides extensive support for working with JSON data.
Go has a powerful standard library that makes string manipulation easy right out of the box.
An enum (short for enumerator), is a set of named constant values. An enum is a powerful tool that allows developers to create complex sets of constants that have useful names and yet simple and unique values.
I can’t begin to tell you how often I split strings in Go. More often than not I’m just parsing a comma-separated list from an environment variable, and Go’s standard library gives us some great tools for that kind of manipulation.
For loops are a programmer’s best friend! They allow us execute blocks of code repeatedly and iterate over collections of items.
If you’ve already read my previous post, you know that the amqp package is awesome and you can get up and running with just 40-50 lines of simple code.
Golang has skyrocketed in popularity year over year, making it one of the best choices for career-conscious developers to learn.