You may have seen the advertisements that are automatically placed into various sections on many of the pages of this website. The team at Ezoic handles all that for me, allowing me to focus on writing about the things that I care about and sharing what I’ve learnt about coding with other Go developers. So […]
This post is the start of an upcoming three-part series which will explain twelve Go proverbs. In this context, the word “proverb” is just used as a fancier term for a “short, snappy saying”. The proverbs that we’ll be discussing come from a talk given by Rob Pike in the early days of Go. Rob […]
Not all years are of the same length — some are shorter or longer than others — so if you’re writing code that deals with dates and durations, it may be important to take account of this. What Is a Leap Year? In the Gregorian calendar, a leap year has 366 days, whereas other years […]
Installing the Go programming language for the first time is really easy, regardless of what operating system or processor architecture your computer is running. It’s particularly straightforward to install Go on Windows or MacOS machines, but Linux users won’t find the process unnecessarily difficult either, especially if they’re using a package manager. Where to Find […]
There is no single function in the Go standard library that will return a boolean value set to true if a given file or directory exists, based on a given path, or false if it doesn’t. Some people may argue that such a function should have been provided, especially since other popular programming languages have […]
Unlike some other programming languages, Go offers really good native support for working with durations, dates and times. We will look at how they are represented in Go, before exploring some of the various methods and functions that can be used to modify, parse or format them.
I’m going to take a little diversion from discussing Go code today in order to share a curious story from the history of computing. What Was MiniScribe? MiniScribe was established in 1980 as a manufacturer of computer hard-disk drives, an important supplier to the fast-growing tech industry. The company’s motto was “Solutions for Data Storage”, […]
Even the best-written code will occasionally run into problems. If hardware breaks, network connections are lost or users provide unexpected input, errors make us aware of the problem and allow us to take action to fix it. We will begin by discussing how errors are defined in Go and then we will go through some […]