Type of session: 50 min tutorial
Writing testable code in GO
This tutorial will go through the basics on how to write tests in GO and how to write GO code that is testable. We will use an small app to give a clear example on how to test the code. We will cover the build-in test library and the tools to look at the test coverage for your code.
Test driven development is the process of writing tests first for the features you are implementing. In GO if you try to write tests after writing the main code there is a big possibility of getting into a nightmare. The only way you could write tests for your code is if you write code that you can test. This talk with go throug the basics on testing and give a clear example on how to write code that you can test.
The GopherCon 2016 Call for Proposals: http://cfp.gophercon.com/events/gc16