<p>Hello.
I am c# developer, but I started to learn go.
I wrote a small program in go that is http mock server.
I would like to receive some pointers on implementation, code style and go naming guidelines. </p>
<p>Application is designed to provide responses based on url, headers and query params.
I tried to make configuration as easy as possible, hence I used yaml for configuration file, as it allows to put json and xml bodies without escaping them. Also responses are selected by url and first select clause that matches (no select will match everything)</p>
<p>Github: <a href="https://github.com/ArtyomTurkin/go-MockHttp" rel="nofollow">https://github.com/ArtyomTurkin/go-MockHttp</a> </p>
<p>Thank you. </p>
<hr/>**评论:**<br/><br/>epiris: <pre><p>Read <a href="https://blog.golang.org/package-names" rel="nofollow">package</a> and then write <a href="https://golang.org/pkg/testing/" rel="nofollow">tests</a> including a <a href="https://blog.golang.org/examples" rel="nofollow">testable example</a> or two. The Go tooling will guide you towards the side of correctness as long as you use it. Specifically be diligent with golint and goimports to make life a little easier. I say this because early on while writing simple programs like this you will get more out of tooling and practice than line items from experienced engineers. The interesting questions will start popping up as you get farther along. Glad to see your giving Go a try, happy coding.</p></pre>
