Iteration has long been one of the more fragmented areas of Go, with developers relying on ad hoc patterns to traverse custom data structures. This article explores the range-over-functions …
Subscribe to our Newsletter
By signing up you get access to our FREE Training Bundle, Technical Tuesday releases, Special Offers, & Notifications on our latest content.
All Blog Posts
Type at least 3 characters.
Search failed. Try again or message us directly at hello@ardanlabs.com.
Published
Jul 12, 2013
-
11 min read
Understanding Type in Go
When I was coding in C/C++ it was imperative to understand type. If you didn’t, you would get into a lot of trouble with both the compiler and running your code. …
Published
Jul 10, 2013
-
7 min read
Object Oriented Programming in Go
Someone asked a question on the forum today on how to gain the benefits of inheritance without embedding. It is really important for everyone to think in terms of Go and …
Published
Jul 6, 2013
-
7 min read
Singleton Design Pattern in Go
Multi-threaded applications are very complicated, especially when your code is not organized and consistent with how resources are accessed, managed and maintained. If …
Published
Jul 5, 2013
-
8 min read
How Packages Work in Go
Since I started writing code in Go it has been a mystery to me how best to organize my code and use the package keyword. The package keyword is similar to using a …
Published
Jun 24, 2013
-
13 min read
Running Go Programs as a Background Process
I have been writing Windows services in C/C++ and then in C# since 1999. Now that I am writing server based software in Go for the Linux OS I am completely lost. What is …
Published
Jun 17, 2013
-
3 min read
Reading XML Documents in Go
I was really surprised how easy it was to read an XML document using the encoding/xml package that comes with the standard library. The package works by defining structs …
Published
Jun 13, 2013
-
3 min read
Send an email in Go with smtp.SendMail
I wanted to send an email from my TraceLog package when a critical exception occurred. Fortunately Go’s standard library has a package called smpt which can be …
Published
Jun 11, 2013
-
5 min read
Go's time.Duration Type Unravelled
I have been struggling with using the Time package that comes in the Go standard library. My struggles have come from two pieces of functionality. First, trying to …
Published
Jun 8, 2013
-
14 min read
Understanding Defer, Panic and Recover
I am building my TraceLog package and it is really important that the package logs any internal exceptions and prevents panics from shutting down the application. The …

