Paul FortinGolang: Calling a nil struct functionAs golang developers we are used to creating struct and methods on those struct with pointer receivers. Like in this simple example:Sep 25, 20211Sep 25, 20211
Paul FortinGo — Example inheritance and function overloadingBelow is an example of golang’s ability to duplicate OO’s inheritance and function overloading. By embedding structs in other structs they…Feb 3, 2019Feb 3, 2019
Paul FortinSimple Go dependency injection (Part 2)Welcome to part 2 of 2 in this brief series dedicated to Go dependency injection. In Simple Go Dependencies Part 1 we saw how to replace 1…Jul 22, 2018Jul 22, 2018
Paul FortinSimple Go dependency injection (Part 1)So you wrote a cool application that depends on some 3rd party code that accesses a DB and you want to make sure your code works a you want…Jul 9, 2018Jul 9, 2018
Paul FortinGolang apps do not need a supervisor like `S6` in a docker containerIn many languages, you need to run an application like S6 to detect a shutdown and send your app a graceful shutdown in order to avoid lost…Jul 1, 2018Jul 1, 2018