One-Function Interfaces in Golang

  • If are doing this to ease DI and mocking, just use a mocking library that supports function mocks:

    https://moqueries.org/