Golang - Pg. 2
Scala vs Go: Comparing Everything You Need to Know
by Meghan Reichenbach
Scala and Golang are newer languages, only coming onto 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 vs Java: 6 Key Comparisons
by Meghan Reichenbach
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.
What is Go Good For? (And What Is Golang Used For?)
by Jamie Dunmore
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.
Golang vs C++: Which is Best For Your Next Project
by Meghan Reichenbach
Needing to be a math genius to learn to code is a thing of the past. High-level programming languages offer an alternative to low-level machine code, which makes coding more accessible than ever. Let's dive into how Golang, a modern higher-level language, matches up to C++, a tried-and-true low-level language. We'll cover the most important points like which language is more performant, which is easier to learn, which results in cleaner code, and which programming methodologies guide their respective designs.
Quick Sort in Golang
by Lane Wagner - Boot.dev co-founder and backend engineer
Quicksort is an efficient sorting algorithm commonly used in production sorting implementations. Like Merge Sort, Quicksort is a divide-and-conquer algorithm. As the name implies, Quicksort is one of the fastest sorting algorithms, but you have to pay attention to detail in your implementation because if you're not careful, your speed can drop quickly.
How to Write Insertion Sort in Go
by Lane Wagner - Boot.dev co-founder and backend engineer
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. Insertion sort is a simple algorithm that works just like you would arrange playing cards in your hands. A slice is first split into sorted and unsorted sections, then values from the unsorted section are inserted into the correct position in the sorted section.
Merge Sort in Golang with Examples
by Lane Wagner - Boot.dev co-founder and backend engineer
Merge sort is a recursive sorting algorithm and, luckily for us, it's quite a bit faster than bubble sort. Merge sort is a divide and conquer algorithm.
Writing Bubble Sort in Go from Scratch
by Lane Wagner - Boot.dev co-founder and backend engineer
Bubble sort is named for the way elements "bubble up" to the top of the list. Bubble sort repeatedly steps through a slice and compares adjacent elements, swapping them if they are out of order. It continues to loop over the slice until the whole list is completely sorted.
Defer in Go
by Lane Wagner - Boot.dev co-founder and backend engineer
The defer keyword is a fairly unique feature of Go. It allows a function to be executed automatically just before its enclosing function returns. The deferred call's arguments are evaluated immediately, but the function call is not executed until the surrounding function returns.
Comprehensive Guide to Dates and Times in Go
by Lane Wagner - Boot.dev co-founder and backend engineer
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. This full tutorial should answer ~90% of the questions you'll have about time management in Go.
Concatenating with strings.Builder Quickly in Golang
by Lane Wagner - Boot.dev co-founder and backend engineer
The Go standard library makes concatenating strings easy. Concatenation is just a fancy word for adding strings together to make a larger string. For example, if we concatenate "hello", " " and "world" we'd get "hello world".
Golang vs Python: Which Language is Best For You?
by Zulie Rane - Data analysis and computer science techincal author
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. There are different languages for just about every purpose you could think of. Of those popular coding languages, programmers often face an intense battle of Golang vs Python. (The official name is Go, but the website is Golang.org, so programmers typically refer to it as either interchangeably.)
The Ultimate Guide to JSON in Go
by Lane Wagner - Boot.dev co-founder and backend engineer
As a language designed for the web, Go provides extensive support for working with JSON data. JSON (JavaScript Object Notation) is an incredibly popular data exchange format whose syntax resembles simple JavaScript objects. It's one of the most common ways for applications to communicate on the modern web.
How Replace a String in Go - Top 5 Examples
by Lane Wagner - Boot.dev co-founder and backend engineer
Go has a powerful standard library that makes string manipulation easy right out of the box. One of the functions I use most often is the strings package's Replace() function. strings.Replace() returns a copy of its input string after replacing all instances of a given substring with a new one.
String Enums in Go
by Lane Wagner - Boot.dev co-founder and backend engineer
My least favorite part of Go? Glad you asked. It's Go's lack of enums, sum types, tagged unions, etc. Compared to other statically typed languages like:
Splitting a String into a Slice in Golang
by Lane Wagner - Boot.dev co-founder and backend engineer
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 in Go
by Lane Wagner - Boot.dev co-founder and backend engineer
For loops are a programmer's best friend! They allow us to execute blocks of code repeatedly and iterate over collections of items. In Go, there are several different ways to write one.
Using a High-Level RabbitMQ Client in Golang
by Lane Wagner - Boot.dev co-founder and backend engineer
So you might already know that the amqp package is awesome and you can get up and running with just 40-50 lines of simple code. Unfortunately, the bare-bones amqp library doesn't handle a lot of the stuff you probably wish it did, things like reconnecting logic, the spawning of threads, queue and binding boilerplate, and flow control.
Why should you learn Golang? [2026]
by Meghan Reichenbach
Golang has skyrocketed in popularity year over year, making it one of the best choices for career-conscious developers to learn. As an example, StackOverflow's Developer survey saw it climb in popularity among developers from 10th in 2019 all the way to 5th in 2020. Additionally, a full 32% of developers surveyed in Insights Dice want to learn it. Go developers are paid well - globally, the StackOverflow survey found that Perl, Scala, and Go programmers have the highest salaries.
Should You Commit the Vendor Folder in Go?
by Lane Wagner - Boot.dev co-founder and backend engineer
If you're asking "should I commit the vendor folder in my Go project to Git?", the answer is "almost always". Let's talk about why committing is generally better than not.
Learn Go Fast - Top Courses and Resources
by Lane Wagner - Boot.dev co-founder and backend engineer
Want to learn Go fast? The good news is that Go is one of the simplest programming languages out there. It was designed to have a compact feature set, which means you can learn it much faster than most other languages.
Constants in Go
by Lane Wagner - Boot.dev co-founder and backend engineer
Constants can be confusing and easy to misuse in Go if you are coming from an untyped language. Let's take a look at some of the nuanced details of how they work in Go. It's probably unsurprising, but Go's constants are almost nothing like JavaScript's bastardized version of the concept.
How to Structure a Golang Project
by Lane Wagner - Boot.dev co-founder and backend engineer
I lead a team that's responsible for anywhere from 15-25 Go microservices at any given time. We're constantly creating new services and libraries, so it's become important to streamline the project creation process. I'm mostly writing this article for myself as a kind of self-documentation, but hopefully, you'll find it useful as you create new Go projects for yourself.
Running Go in the Browser with WASM and Web Workers
by Lane Wagner - Boot.dev co-founder and backend engineer
We've recently made big changes to how we execute Go in the browser on boot.dev and want to explain the enhancements. Web Workers are the reason we've been able to solve some of the serious browser-related coding problems that were holding us back. Consider this article a sequel to Running Go in the Browser with Web Assembly.
How to Make Pure Functions in Golang
by Lane Wagner - Boot.dev co-founder and backend engineer
Pure functions are often hyped up in the JavaScript world, probably because of the abundance of stateful front end applications. While pure functions have their downsides (i.e. inconvenience, potentially large argument lists), they should be used as much as reasonably possible.
