Hi,
I've read a number of blog posts about RESTful APIs in Go and am now looking for an open-source example to use as reference?
Thanks!
评论:
oleksii1:
c-dex:Hi, i would recommend you to check https://github.com/sourcegraph/thesrc . You will see structure of Web App + you will find basic implementation of API. As for me combination of standard net/http + gorilla + sqlx seems good enough for development.
tinygopher:+1 thanks.
c-dex:I just built one for the gopher gala. I am noob to go also but it can give you a couple things to look at. I use jwt for sessions, bcrypt for password hashing, gin for routing, and the basic sql package for database. Like I said I am a noob too and it is by no means complete or ready for prod* but it is at least a way to see the outcome of combining a few packages based on several tutorials.
:+1 thanks.
c-dex:[deleted]
I've read a number of blog posts about RESTful APIs in Go
If I'm asking this on Reddit and I've read blog posts, you can safely assume that I've used Google...
Looking for production server code, so that I can make comparisons especially around testing.
