Replacing Parts of a String in Go Part Two

May 7, 2019

In this blog post, I will show you how you can replace parts of a string with new content. To complete this task, we will use the strings package from the Go Standard Library. You can find part one here. When you have more than one string value to replace you should use the NewReplacer […]

Replacing Parts of a String in Go Part One

April 30, 2019

In this blog post, I will show you how you can replace parts of a string with new content. To complete this task, we will use the strings package from the Go Standard Library. Replace Function The Replace function is used for when you need simple replace and the function takes in four parameters: s: This […]

Learn How To Reverse A Linked List Using Go

April 23, 2019

This blog post is a part of a series on programming interview questions. In the post, you will learn how to reverse a linked list. You can find more interview questions blog post here. Question A common question that comes up in coding interviews is to reverse a linked list. In this post, I will […]

Working with For Loop in Go

April 9, 2019

Unlike other languages, Go has one looping construct — the for loop. However, the for loop can handle all of your looping needs. I will show you examples of how to use the for loop to count from 1 to 10 and how to loop over an array/slice in different ways. Count From 1 to […]

Golang Installation and Setup On Ubuntu and POP!OS Linux

April 4, 2019

In this blog post, I will show you how to install Go on Ubuntu or POP!OS Linux. Installing GO Go binary distributions are available for all major operating system but in this blog post I will focus on Ubuntu Linux and its derivatives. Downloading GO Download the Linux distribution from Go’s official download page Extract and Copy Files […]

Sorting Java Collections

February 12, 2019

Sorting collections is a common task that Java developers deal with on a daily bases.  The Java Collections class provides us with two sort() methods to sort all collections that implement the List interface. Sorting Primitive Types & Strings In the example below, we will create a list with ten random integers and sort the list using the sort() method, […]