Golang Project Structure

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

James Smith (Golang Project Structure Admin)

Author

Installing the Go Programming Language From Scratch

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 […]

How to Check Whether a File Exists or Not With Go

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 […]

Handling Times, Dates and Durations of Time

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.

Why Did MiniScribe Try to Use Bricks as Hard Drives?

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”, […]

How to Handle Errors in Go

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 […]

Improving the SEO of Your Blog or Website

Three tiles with letters on them spelling out the acronym SEO, which stands for "Search Engine Optimization".

Search engine optimization (SEO) is the practice of optimizing your website in order to rank higher in search engine results pages (SERPs). I’ve built multiple websites over the years, with varying degrees of success, and this blog that focuses on the topic of Go coding is my latest project. So I want to share some […]

Using Pointers in Go Code

It’s possible to write thousands of lines of Go code without declaring a pointer even once. However, pointers are an important part of the programming language, so it’s important to ensure that you understand how they work. In this post we will discuss the definition of a pointer and then go on to look at […]

Has Google Created Sentient Life?

Blake Lemoine, a software engineer at Google recently lost his job after he went public with claims that Google’s LaMDA had attained such a level of consciousness that it could reasonably be considered a person. He even raised the possibility that LaMDA could experience a level of suffering that risked Google’s complicity in its exploitation, […]