Full Discussion (Using functional options instead of method chaining in Go)

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.

code of conduct - report abuse