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
Mar 8, 2023
-
16 min read
Rust Programming Language: Simple Game
with Cheikh Seck
Introduction This is the first in a series of posts that will explore the Rust programming language. I am going to take the same approach I did with Go …
Published
Mar 7, 2023
-
2 min read
Interfaces 101 : Interface Type Assertion Ep. 6
Introduction In episode 5, Miki wrote a function that counted the number of lines in a file with interfaces. The first thing his function did was to open a file with Go’s …
Published
Feb 27, 2023
-
2 min read
Interfaces 101 : Determine LOC with io.Writer Ep. 5
Introduction In episode 4, Miki defined an enumerated type that satisfied Go’s fmt.Stringer interface. By implementing the fmt.Stringer interface, Miki can specify how …
Published
Feb 21, 2023
-
2 min read
Interfaces 101 : Go's Logging Interface Ep. 4
Introduction In episode 3, Miki implemented a type that satisfied Go’s error interface. The odd thing about his type was it would be considered not-nil although no value …
Published
Feb 13, 2023
-
2 min read
Interfaces 101 : Error Handling With Go Ep. 3
Introduction In episode 2, Miki examined the impact interfaces have on the performance of a Go program. To perform this experiment, Miki invoked a type’s method in two …
Published
Feb 8, 2023
-
2 min read
Interfaces 101 : Heap Escape Ep. 2
Introduction In episode 1, Miki had two functions that performed the similar operation, but returned different types. To refactor this, Miki rewrote both functions as a …
Published
Jan 31, 2023
-
1 min read
Interfaces 101 : Implementing Generics with Interfaces Ep. 1
Introduction Go interfaces are beneficial to Go developers because they:
Allow interfaces to separate mechanism from behavior. Increase flexibility of function …
Published
Jan 27, 2023
-
1 min read
Ultimate Go: Advanced Engineering Episode 20
Introduction In episode 19, Bill designed and implemented the data structure for an account on his blockchain. This type will have a nonce field to ensure incoming …
Published
Jan 24, 2023
-
1 min read
Ultimate Go: Advanced Engineering Episode 18
Introduction In episode 17, Bill began to design an in-memory accounting database that will store the account balances on his blockchain. To build this database, Bill …


