Author: Eli Bendersky

Optional JSON fields in Go

May 23, 2020 at 06:28 Tags Go One common kind of data stored in a configuration file is options. In this post, I’ll talk about some nuances we have to be aware of when storing options in JSON and unmarshaling them to Go....

Read More

Representing JSON structures in Go

May 16, 2020 at 05:50 Tags Go Following some period of time reading and answering Stack Overflow questions about Go, last year I wrote the Go JSON Cookbook post to summarize some of the common issues with Go and JSON. Since...

Read More

PubSub using channels in Go

The idiomatic way of writing concurrent code in Go is as a collection of goroutines communicating over channels. In my experience, the Publish-subscibe pattern (PubSub) comes up often as a way to structure code. The pattern...

Read More

My Reading Habits

January 02, 2020 at 05:30 Tags Reading In 2019 I’ve finished 63 books, which is a new personal record: I began keeping detailed track of my reading when this blog launched in 2003. In case you’re wondering, the total...

Read More

Diffie-Hellman Key Exchange

This post presents the Diffie-Hellman Key Exchange (DHKE) – an important part of today’s practical cryptography. Whenever you’re accessing an HTTPS website, it’s very likely that your browser and the...

Read More

The Chinese Remainder Theorem

The Chinese Remainder Theorem (CRT) is very useful in cryptography and other domains. According to Wikipedia, its origin and name come from this riddle in a 3rd century book by a Chinese mathematician: There are certain things...

Read More


Follow Us on Twitter