This is an easy to understand example based tutorial aimed at those who know a little of Go and nothing of webdev and want to learn how to write a webserver in Go. You will create a to do list application as you advance the chapters.
Please use the
front endfolder in the
codefolder to get the index.html of the Tasks project and work on it while reading this tutorial.
We welcome all Pull Requests, please raise an issue before starting your work!
I got feedback from a reddit user that maybe it is too early for me to start writing this book. Decades ago, a young student from the University of Helsinki had an endless debate with Andrew Tannenbaum on comp.minix. It was about monolithic kernels. Had the student listened to Andrew Tannenbaum, the world probably would not have had Linux. This is the whole point of open source projects, a little initiative from everyone goes a long way. I would like to thank everyone who gave their suggestions on reddit and HN.
- Through this book we want to teach how to develop web applications in Go. Weexpect the reader to know the basics of Go but we assume the reader knowsnothing about how to write web applications.
- The book shall comprise of chapters, if the topic is huge and doesn't fitinto one chapter, then we split into multiple chapters, if possible.
- Each chapter should be split into logical parts or sections with ameaningful title which'll teach the reader something.
- Every concept should be accompanied by the Go code (if there is any), forsneak peek type sections write the Go pseudo code, writing just thenecessary parts of the code and keeping everything else.
- The code shouldn't be more than 80 characters wide because in the PDFversions of the book the code is invisible.
- Brevity is the soul of wit, please keep the description as small aspossible. This doesn't mean we skip it, but try to explain it in assimple words as possible. In such cases do explain the concept.
- In the todo list manager which we are creating, we'll strive to implement asmuch functionality as possible to give a taste of practical Go programmingto the reader. In cases where we re-implement stdlib stuff, we shouldmention it clearly.
- The main title should have one #, sections should have 2 #'s sub sectionshould have 4 and notes should have 6 #'s (note should have a title too).
Written with love in India with help from the Internet.
- 2.The gopher in the cover page is taken frommodifications.