DEV Community

Discussion on: Using functional options instead of method chaining in Go

Collapse
 
foresthoffman profile image
Forest Hoffman

Well said Jon! I use the functional approach to handle mocking methods that handle API requests, in my tests. It may take more effort up front, but the long term rewards are very real.