Connecting to SQL Database with Go
The HTML and text templates, discussed in my previous few blog posts, are two of the many packages that become powerful tools when working with large datasets. Henceforth, my next series of blog posts
Search for a command to run...
Articles tagged with #go
The HTML and text templates, discussed in my previous few blog posts, are two of the many packages that become powerful tools when working with large datasets. Henceforth, my next series of blog posts
My previous blog post introduced templates in Go by demoing how to produce a simple string using the template.New().Parse function. In this blog post, I will go over the steps on how to use the text/template package with loops and conditional logic t...
Using templates in Go is a great way to produce content in a dynamic way. Go makes it possible to prepare content for display as pure text (by using the text/template package or as HTML with proper encoding (by using the html/template package). Both ...
A queue is a very useful data structure where one can store, add, and remove objects with the “First in, First out” (FIFO) principle. Queues are very useful for basic algorithms (such as bread-first search), so it is therefore worth learning how to i...
A struct is a composite datatype that groups together many fields of different types into one object. This blog post will go over the basics of how to declare a struct and assign values to its attributes. In Go, a struct is defined using the type key...
Strings are sequences of characters used to represent text, and they can contain letters, digits, and special characters. In Go, strings are immutable. This post will go over the steps on how to declare a string, and it will also go over basic string...