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.

Why I wrote gocraft/web

34 pointsby cyprissover 11 years ago

4 comments

druskaover 11 years ago
You never mentioned martini <a href="https://github.com/codegangsta/martini" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;codegangsta&#x2F;martini</a>
评论 #6897826 未加载
评论 #6897765 未加载
nemothekidover 11 years ago
I&#x27;ve been using go for some time but I&#x27;ve never seen this:<p><pre><code> Get(&quot;&#x2F;hello&quot;, (*Context).SayHello) </code></pre> What is going on here? How is (*Context).SayHello being called?
评论 #6897952 未加载
评论 #6898073 未加载
bicknergsengover 11 years ago
&gt;&gt;For instance, in Revel you need to put your controllers in a package called ‘controllers’, and models in a package named ‘models’. Nope!<p>I&#x27;d love some opinions on this. I prefer separating models&#x2F;views&#x2F;controllers, but have recently seen some mvc apps where models&#x2F;views&#x2F;controllers are grouped together by function&#x2F;name. Thoughts on the traditional MVC directory structure vs alternatives?
评论 #6897820 未加载
dreamdu5tover 11 years ago
Just curious, but why have request be different from context? The request <i>is</i> the context.
评论 #6899185 未加载