<p>I'm learning Go, and one of the pieces of advice I've seen about writing web applications was to write your own web framework to learn what the standard library has to offer. I've started with the first bit which is HTTP routing. This was also a nice opportunity to learn about benchmarking in Go.
I'd be keen to here some comments on what could be improved.</p>
<p><a href="https://github.com/synepis/yar/">https://github.com/synepis/yar/</a></p>
<hr/>**评论:**<br/><br/>Darxide-: <pre><pre><code> panic("cannot insert the same path twice")
</code></pre>
<p>You shouldn't panic on everything!</p></pre>dirty_owl: <pre><p>Why not call it YAHR ?</p></pre>synepis: <pre><p>Because I toyed with the idea of having a pirate for a logo for it :) </p></pre>ZeroCool2u: <pre><p>Priorities. </p></pre>doatech: <pre><p>Sweet! Was it hard? I just started to learn go, when you started to tackle this challange?</p></pre>synepis: <pre><p>It took a while to figure out all the various approaches and see what works best, but the coding didn't take too long. However, if you're just starting out I wouldn't suggest this as a first project because it doesn't really exercise all the fun parts of Go (e.g. channels and go routines). I'll leave it for someone more experienced to chime in on this.</p></pre>not-yet-implemented: <pre><p>I'm fairly new to the go programming language but still understand your documentation and examples. Pretty nice, keep it up.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传