JasonDim Your iPhone Screen with Three ClicksWhen you’re trying to take a picture outside with the sun shining bright, your iPhone screen’s brightness is a godsend. When you’re trying…Apr 6, 2017Apr 6, 2017
JasoninStupid Gopher TricksMore Powerful Synchronization in Go, using ChannelsHere’s a common predicament: you have a value, e.g., some string or number or struct, that can be read and written by many goroutines, and…Jan 12, 20173Jan 12, 20173
JasoninStupid Gopher TricksEnsuring Go interface satisfaction at compile-timeIn my last post, I described a technique to ensure that a test implementation satisfies an interface, without having to implement every…Oct 22, 20151Oct 22, 20151
JasoninStupid Gopher TricksStubbing Out Interfaces in GoHere’s a situation in which you may find yourself. You have a service that exposes a lot of functionality. Because you’re a good software…Jul 16, 20152Jul 16, 20152
JasoninStupid Gopher TricksStreaming data in Go, without bytes.BufferHere’s a common problem I find myself encountering often when writing a program in Go: I have a value that I’d like to encode as JSON and…Jun 25, 20155Jun 25, 20155