Homepage
Sign inGet started

Go Walkthrough

Go to the profile of Ben Johnson
Ben Johnson
Aug 1, 2016

Go Walkthrough: io package

Go is a programming language built for working with bytes. Whether you have lists of bytes, streams of bytes, or individual bytes, Go makes it easy to process. From these simple primitives we build our abstractions and services.

Read more…
7 responses
Go to the profile of Ben Johnson
Ben Johnson
Aug 8, 2016

Go Walkthrough: bytes + strings packages

In the previous post we covered byte streams but sometimes we need to work with bounded, in-memory byte slices instead. While working with a list of bytes seems simple enough, there are a lot of edge cases and common operations that make using the bytes…

Read more…
7 responses
Go to the profile of Ben Johnson
Ben Johnson
Aug 15, 2016

Go Walkthrough: encoding package

Adding logical structure to our byte streams & slices.

So far we’ve covered working with raw byte streams and bounded byte slices but few applications simply shuttle bytes around. Bytes alone don’t convey much…

Read more…
4 responses
Go to the profile of Ben Johnson
Ben Johnson
Aug 22, 2016

Go Walkthrough: encoding/json package

Diving deep into the bowels of Go’s JSON encoding package

For better or for worse, JSON is the encoding of the Internet. Its formal definition is small enough that you could write it on the back of a…

Read more…
5 responses
Go to the profile of Ben Johnson
Ben Johnson
Aug 29, 2016

Go Walkthrough: encoding/binary

Demystifying the low-level binary encoding package

When you need to squeeze every last bit or CPU cycle out of your protocol, one of the best tools is the encoding/binary package. It operates on the lowest level and…

Read more…
3 responses
Go to the profile of Ben Johnson
Ben Johnson
Sep 8, 2016

Go Walkthrough: strconv

Fast, efficient, & safe primitive formatting.

Formatting & parsing primitive values in Go is a common task. You probably first dipped your toes into the fmt package when you started Go, however, there’s a less commonly used…

Read more…
Go to the profile of Ben Johnson
Ben Johnson
Sep 21, 2016

Go Walkthrough: fmt

Templated formatting using the “fumpt” package.

In the last post we looked at fast, primitive encoding using strconv but in this post we’ll take a higher level approach by using templates with the fmt package. The fmt package builds on…

Read more…
5 responses
About Go WalkthroughLatest StoriesArchiveAbout MediumTermsPrivacy