Golang Project Structure

Tutorials, tips and tricks for writing and structuring code in Go (with additional content for other programming languages)

data structures

Tag

Build Your Own Blockchain From Scratch in Go

A chain made out of metal links.

Sometimes “blockchain” can seem like nothing more than a hyped-up buzzword. Yet, despite the hype, it’s useful to understand the fundamental concept that lies behind it, which isn’t very difficult to grasp. It’s really quite simple and elegant. The blockchain data structure is particularly important because it’s at the heart of valuable decentralized systems like […]

Are Golang Maps Thread-Safe?

Concurrency is such an integral part of Golang, because modern computers tend to have multiple processors and threads that code can run on. It’s therefore important that the data structures we use can be used across multiple threads — or, in our language, goroutines. A map in Golang is equivalent to a dictionary in Python […]