TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How I write Go HTTP services after 7 years

22 点作者 dnnrly大约 7 年前

3 条评论

stockkid大约 7 年前
Very nice.<p>&gt; By calling ServeHTTP on the server, we are testing the entire stack including routing and middleware, etc. You can of course call the handler methods directly if you want to avoid this<p>What is the trade-off between the two? Does it make the tests significantly slower to test the entire stack rather than just a handler?
评论 #17122019 未加载
vonseel大约 7 年前
Not part of the post but can&#x27;t help and laugh at the company&#x27;s marketing snipped below. Buzz-worthy!<p>&quot;What is this Machine Box that I keep hearing all this amazing stuff about?<p>Machine Learning in Docker containers for Kubernetes — implement some ML today, without having to learn all that Tensorflow stuff.&quot;
vonseel大约 7 年前
7 years is a long-time in Golangland.