Possibly. Like I said, I like Go. And I don't like to insult anyone's work. But this doesn't seem front page worthy. It's incomplete, short, and not idiomatic. Then I remember seeing posts about Go the game too, which made me suspect bots. I don't care quite enough to test, but I hate to think this quality source of news is being manipulated. Ah well.
Why the code is so full of undocumented TODOs? Is this a finished product or work in progress? If the former then you need good documentation. Badly. If the latter then I'd only present it to HN after the work is finished.
Thanks for checking it out. Yes I totally agree on all fronts. This is indeed WIP, my hope in posting to HN is to get some assistance with said work - but you're right I should make that more clear.
Hey, thanks for your critique - I really appreciate you taking the time to check out the code. I wanted to be able to validate requests from a mobile application (or similar), rather than building an entire OAuth flow. I'm hoping this will offer a useful starting point to newcomers like myself who want to get something simple off the ground.
16 comments
[ 3.1 ms ] story [ 44.3 ms ] threadIt was the exact same thing on HN when Node.js was just starting to spike in popularity. Same with frontend JS frameworks.
https://github.com/martini-contrib/oauth2
with easy ways to check to see if a user is authenticated.
Gorm is an awesome choice, but this code just looks messy to me