TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

One-Function Interfaces in Golang

5 pointsby misonicabout 1 month ago

1 comment

myshkin5about 1 month ago
If are doing this to ease DI and mocking, just use a mocking library that supports function mocks:<p><a href="https:&#x2F;&#x2F;moqueries.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;moqueries.org&#x2F;</a>