[Help] Example of RESTful API in Go?

xuanbao · 2016-01-28 15:56:21 · 771 次点击    
这是一个分享于 2016-01-28 15:56:21 的资源,其中的信息可能已经有所发展或是发生改变。

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:

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.

c-dex:

+1 thanks.

tinygopher:

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.

https://github.com/gophergala2016/learnlink

c-dex:

+1 thanks.

:

[deleted]

c-dex:

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.


入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

771 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传