© 2022 Hashnode
#go-cjidm6n1p00lpq9s29dy2bsiq
In this article, I’m going to cover some rules of thumb for logging in go, as well as some functions you may not have heard of that can make your debugging life easier. Rule #1 – Use Errors Where Appr…
Pure functions are often hyped up in the Javascript world, probably because of the abundance of state in front end applications. While pure functions have their downsides (i.e. inconvenience, potentia…
Introduction The Open-Closed Principle states that types should be open for extension, but closed for modification. Analogy Lets assume we're operating an online store, and we want end users to be abl…
Introduction The Single Responsibility Principle states that a class or type should have one primary responsibility and as a result one reason to change. That reason being related to its primary respo…
In this tutorial, I’m going to walk you through building a streaming API using Golang. Don’t worry, its surprisingly easy to build a robust streaming server, especially if we utilize one of the more m…
For the most part, Go developers are pretty good about using constants for global configuration, rather than global variables. A problem arises however when we want a global constant slice or map. The…
Go has become increasingly popular in recent years, especially in my local area. Go has been consistently displacing other backend languages like Ruby, Python, C# and Java. Go is wanted for its simpli…
GO Packages are like an imaginary box which can contain lots of GO files. In this respect, a package is only a directory inside your GO workspace containing one or more GO source files, or other GO packages. All files should belong to the …
Introduction To write your first code in any programming language, it has become a norm to start with a simple hello world program. In this post, I will be showing how to write a program in GO and explain all the parts of the program. Lets …
Introduction I just recently started learning the GO programming language. While I have realized that keeping notes of what I am learning along the way is crucial to the learning process, I also decided to as well share some of my notes in …