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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Do you use web frameworks in Go?

3 点作者 metaculus大约 9 年前
As per this blog post, http://bit.ly/1oxZLMD, do you usually use a web framework in Go? Or do you rather use packages?

2 条评论

znpy大约 9 年前
I write my small web applications using the Gin framework, I feel no shame in this, but I partially agree with the link you shared.<p>But, quite frankly:<p>- I like that gin does some of the work for me.<p>- I like that I have to write a bit less code, while basically keeping all of the semantic<p>- I like that I can access the Request and ResponseWriter structs via the gin.Context struct.<p>I dislike (or opinions I share):<p>- Well yes, sometime things break and you have to a bit more time on the problem<p>- Sometimes new features come out and you will have to wait for or framework developers, or even patch it yourself (all things that actually keep you from writing your code)<p>- Sometimes development of the framework take a path you just don&#x27;t like.<p>- Sometime you find that things could just be done better, but developers disagree and you can&#x27;t fix this problem without forking and ending up with ANOTHER micro-framework.<p>In the end, I am still okay with going with the gin framework.<p>I feel no special love for gin, but it is okay.<p>What I would really, really love is something like Grails (in terms of development speed), but in Go.
brudgers大约 9 年前
Direct link: <a href="https:&#x2F;&#x2F;medium.com&#x2F;code-zen&#x2F;why-i-don-t-use-go-web-frameworks-1087e1facfa4?source=latest---" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;code-zen&#x2F;why-i-don-t-use-go-web-framework...</a>