Use Anonymous Structs For JSON Marshalling in Go

photo 1493476523860 a6de6ce1b0c3

Go is a language built for the web. The Go standard library comes with everything we need to stand up a production web server. Today we are going to explore marshaling JSON using anonymous structs. Anonymous structs can help keep API handlers clean and simple. What Is A Struct? Go’s structs are typed collections of fields. They’re … Read more Use Anonymous Structs For JSON Marshalling in Go

Thinking about Recursion: How to Recursively Traverse JSON Objects and the Filesystem

photo 1527266237111 a4989d028b4b

I work primarily on application-level programs, so I tend to not use recursion very often. However, every now and then I need a function that is best solved recursively. It is important to be able to recognize when a problem is best solved recursively, and to be able to write it when the time comes. … Read more Thinking about Recursion: How to Recursively Traverse JSON Objects and the Filesystem