7/6/2023 0 Comments Godocs tutorial![]() ![]() I finally decided to use Martini for a couple of reasons: 1) it smells a lot like Express and Sinatra so it was easy for me to grok, has a huge community and seems to be growing by leaps and bounds. The Square Engineering blog also has an in-depth analysis as well with their winner. There’s a great reddit thread with a ton of info. So the first thing I did was look around for a web framework for Go. One thing we want to do with topcoder is allow members to post pictures and video of where they work, i.e., their cribs. ![]() I wanted something a little more than a hello world but definitely not production quality. I learn best by doing so I looked around for something to build. If you are keen on Slack, Gohper Academy just announced a new Slack community you can join. If you need a little help now and then, there is of course Stackoverflow and the go-nuts IRC channel, #go-nuts. If you are fan of Railscasts, there a Gophercasts with a couple of good videos, especially for Postgres and Martini.Īnd finally Go (Golang) Pointers in 5 Minutes covers of course pointers in Go. Go by Example is a hands-on introduction to Go using annotated example programs. The site has one long Go file with a ton of effective commenting that teaches concepts along the way. I think my favorite site is Learn X in Y minutes, Where X=Go. Go Bootcamp (by Matt Aimonetti) – The PDF is available here. You can build the code yourself or download the PDF Learning Go – a free PDF for learning the Go language. If you prefer books (or PDFs of books), I found the following to be really helpful: The document gives tips for writing clear, idiomatic Go code. However, if you prefer, there is a video version instead.Ī must read for any new Go programmer is Effective Go. I found How to Write Go Code a god start as it demonstrates the development of a simple Go package and introduces the go tool, the standard way to fetch, build, test and install Go packages and commands. You definitely want to check out the Go docs and language specs next. Great for testing snippet you find or code you want to experiment with. If you are feeling adventurous, you can head over to the Go Playground and run your own code. No software installation needed to get start playing. Click the Run button for each section to compile and run the program on a remote server. ![]() ![]() Throughout the tour you will find a series of exercises for you to complete. The tour is divided into three sections: basic concepts, methods and interfaces, and concurrency. I started off with the interactive Tour of Go. For installation, the Getting Start docs should work for you but you may want to take a peek at this short screencast. For a good overview of what Go is, how it was devised and why it is so cool, check out this blog post. It’s concurrency model is very powerful and it’s standard library provides almost everything you need out of the box. Build times are almost negligible and the code runs super fast. It’s not about object-oriented programming or functional programming. It’s different than most other languages in a number of ways. I’ve spent the last couple of days digging into Go and getting the feel for it and so far I really like it. Following up on my last post, Ready… Set… Golang!, we’re going to go over some resources for learning Go and build a small web app and host it on Heroku. ![]()
0 Comments
Leave a Reply. |