Passionate programmer, experienced Extreme Programmer, Senior Agile Software Engineer, remote worker from Spain, Open Source enthusiast, and avid learner with a focus on software craftsmanship, and IT security.| Domenico Luciani - How to use generics to avoid duplications and make your co...
Go 1.18 adds generics, native fuzzing, workspace mode, performance improvements, and more.| go.dev
Documentation| go.dev
One of the things I enjoy about Go is its standard library, which comes with batteries included. Sure, some packages (like flag) aren’t as powerful or ergonomic as the available alternatives but I’m generally willing to accept this in order to avoid dependencies. Testing The same also applies to Go’s built-in test support, the testing package. Let’s look at a typical test: package example import "testing" func Add(a, b int) int { return a + b } func TestAdd(t *testing.| citizen428.net