Learn Go with test-driven development
Learn Go with Tests Art by Denise Formats: Gitbook , EPUB or PDF Translations: 中文 , Português Why Explore the Go language by writing tests Get a grounding with TDD . Go is a good language for learning TDD because it is a simple language to learn and testing is built-in Be confident that you'll be able to start writing robust, well-tested systems in Go Watch a video, or read about why unit testing and TDD is important Table of contents Go fundamentals Install Go - Set up environment for productivity. Hello, world - Declaring variables, constants, if/else statements, switch, write your first go program and write your first test. Sub-test syntax and closures. Integers - Further Explore function declaration syntax and learn new ways to improve the documentation of your code. Iteration - Learn about for and benchmarking. Arrays and slices - Learn about arrays, slices, len , varargs, range and test coverage. Structs, methods & interfaces