Jean-François BustarretinRandom Go tipsSome tips about slicesnil slices are slicesApr 21, 2018Apr 21, 2018
Jean-François BustarretinRandom Go tipsClosing closed channelsA Go channel cannot be closed twice, doing so will panic…Oct 4, 2016Oct 4, 2016
Jean-François BustarretinRandom Go tipsDynamic JSON schemas in Go (part 1) : optional fieldsIt is sometimes necessary to work with JSON objects using a dynamic schema : optional fields, fields having dynamic types, …Oct 29, 2015Oct 29, 2015
Jean-François BustarretinRandom Go tipsMethod overriding in Go[EDIT 10/30/2015 : rewrote most of the post for clarity and exactitude]Oct 26, 20155Oct 26, 20155
Jean-François BustarretinRandom Go tipsJSON and zero dates in GoThe Go JSON encoder is great (easy to use and easy to extend), except for a tiny thing : zero times which marshal to “0001–01–01T00:00:00Z”…Oct 24, 20151Oct 24, 20151
Jean-François BustarretinRandom Go tipsOn context.Context keys uniquenessAfter reading the blog post introducing context.Context, I got used to using integers as context.Context keys.Oct 14, 20151Oct 14, 20151
Jean-François BustarretinRandom Go tipsinit() without init() in GoI like when files are as self-contained as possible, and having to put some init logic elsewhere (e.g. in a package-level init() function)…Oct 12, 20151Oct 12, 20151