Giter VIP home page Giter VIP logo

gowithtest's Introduction

Learn Go with Tests

This book is for absolute beginners. Familarity with any other programming language is expected.

Following is a map of Chapter name and what topics they cover.

  • Hello, World: Basic syntax, introduction to writing tests in Go.

  • Integers: Documentation, example test/documentation.

  • Iteration: For loops, benchmarks.

  • Arrays and slices: Arrays, slices, len, test coverage.

  • Structs, methods & interfaces: Structs, methods & interfaces and how are they used together.

  • Pointers & errors: Pointers (copy by reference vs copy by value). Errors. nil.

  • Maps: Maps (dictionaries), basic CRUD.

  • Dependency Injection: Prerequisite to next chapter (mocking).

  • Mocking: Test the behavior, not implementation. Don't rely on blocking resources, mimic them.

  • Concurrency: go routines, channels, race contidions, . Make it work, make it right, make it fast.

  • Select: Syntax sugar related to concurrency. Listen to multiple channels at once in a syntax similar to switch.

  • Reflection: Go's internal datatypes.

  • Sync: Supplement to concurrency. WaitGroups, Mutexes. A WaitGroup waits for a collection of goroutines to finish. A Mutex is a mutual exclusion lock. The zero value for a Mutex is an unlocked mutex.

  • Context:

The book can be found at https://quii.gitbook.io/learn-go-with-tests/. If that link is dead, head over to wayback machine https://web.archive.org/web/20200110162028/https://quii.gitbook.io/learn-go-with-tests/

gowithtest's People

Contributors

santosh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.