Our great sponsors
-
https://gobyexample.com/ - Learn the syntax https://exercism.org/tracks/go/ - Practice simple problems to solidify syntax https://gophercises.com/ - Build projects to gain confidence with Go https://quii.gitbook.io/learn-go-with-tests/ - Learn TDD in Go I'm planning to go through the Gophercises projects again and practice building them from scratch using TDD. However, I'm curious if any of you have other recommendations for resources to learn TDD in Go. I would greatly appreciate any advice or insights you have to offer!
-
A bit off-topic, but i really like the ginkgo BDD framework
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Write a test. Then write the implementation. If you find it hard to test, because your test needs to know too much about the implementation, or impossible to test because of side effects, iterate by injecting dependencies. Time itself could be a dependency. I wrote https://github.com/ghostsquad/go-timejumper just for that purpose (as an example).