from
Hacker News
Top
New
One-Function Interfaces in Golang
by
misonic
on 4/6/25, 5:34 AM with 1 comments
by
myshkin5
on 4/13/25, 3:01 PM
If are doing this to ease DI and mocking, just use a mocking library that supports function mocks:
https://moqueries.org/