关于 •
FAQ •
贡献者 •
晨读 •
Github •
新浪微博 •
Play •
免责声明 •
联系我们 •
捐赠 •
酷站 •
Feed订阅 •
66 人在线
最高记录 5390
©2013-2025 studygolang.com Go语言中文网,中国 Golang 社区,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。
Powered by
StudyGolang(Golang + MySQL) • · CDN 采用
七牛云
VERSION: V4.0.0 · 10.756257ms · 为了更好的体验,本站推荐使用 Chrome 或 Firefox 浏览器
京ICP备14030343号-1
是传进去的temp1为空没赋值为string吧
不定义的话就只能自己转为map
看了net/http包的server.go源代码里,里面有个conn结构体对应的接口ServeHTTP,实现这个接口,在这个接口里对URL和方法进行映射应该就能实现restful
#1楼 <a href="/user/brucelandor" title="@b...
后面的正则表达式实际上是struct成员的“TAG”,这个在GO里面用得很多,包括读取yaml,DB数据读取映射等都有用到
%s the uninterpreted bytes of the string or slice
试试 %T a Go-syntax representation of the type of t...