{"id":17760852,"url":"https://github.com/friskenstein/learn-go-with-tests","last_synced_at":"2025-04-01T13:18:04.080Z","repository":{"id":258862854,"uuid":"875809060","full_name":"friskenstein/Learn-Go-with-tests","owner":"friskenstein","description":"Working through the exercises of Learn Go with tests by Chris James","archived":false,"fork":false,"pushed_at":"2024-10-21T22:53:12.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T13:18:00.922Z","etag":null,"topics":["go","golang","tdd","test-driven-development","testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/friskenstein.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-20T21:54:12.000Z","updated_at":"2024-10-21T22:53:15.000Z","dependencies_parsed_at":"2024-10-22T02:55:55.249Z","dependency_job_id":null,"html_url":"https://github.com/friskenstein/Learn-Go-with-tests","commit_stats":null,"previous_names":["friskenstein/learn-go-with-tests"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friskenstein%2FLearn-Go-with-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friskenstein%2FLearn-Go-with-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friskenstein%2FLearn-Go-with-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friskenstein%2FLearn-Go-with-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friskenstein","download_url":"https://codeload.github.com/friskenstein/Learn-Go-with-tests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246644097,"owners_count":20810687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","tdd","test-driven-development","testing"],"created_at":"2024-10-26T19:13:41.446Z","updated_at":"2025-04-01T13:18:04.055Z","avatar_url":"https://github.com/friskenstein.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learn Go with Tests\n\nGoing through the exercises of [Learn Go with Tests](https://quii.gitbook.io/learn-go-with-tests)\n\nRun with `go run main.go -ex={EXERCISE_NAME}`\n\n## Exercises\n\n- [x] Hello, world - Declaring variables, constants, if/else statements, switch, write your first go program and write your first test. Sub-test syntax and closures.\n- [ ] Integers - Further Explore function declaration syntax and learn new ways to improve the documentation of your code.\n- [ ] Iteration - Learn about for and benchmarking.\n- [ ] Arrays and slices - Learn about arrays, slices, len, varargs, range and test coverage.\n- [ ] Structs, methods \u0026 interfaces - Learn about struct, methods, interface and table driven tests.\n- [ ] Pointers \u0026 errors - Learn about pointers and errors.\n- [ ] Maps - Learn about storing values in the map data structure.\n- [x] Dependency Injection - Learn about dependency injection, how it relates to using interfaces and a primer on io.\n- [x] Mocking - Take some existing untested code and use DI with mocking to test it.\n- [ ] Concurrency - Learn how to write concurrent code to make your software faster.\n- [ ] Select - Learn how to synchronise asynchronous processes elegantly.\n- [ ] Reflection - Learn about reflection\n- [ ] Sync - Learn some functionality from the sync package including WaitGroup and Mutex\n- [ ] Context - Use the context package to manage and cancel long-running processes\n- [ ] Intro to property based tests - Practice some TDD with the Roman Numerals kata and get a brief intro to property based tests\n- [ ] Maths - Use the math package to draw an SVG clock\n- [ ] Reading files - Read files and process them\n- [ ] Templating - Use Go's html/template package to render html from data, and also learn about approval testing\n- [ ] Generics - Learn how to write functions that take generic arguments and make your own generic data-structure\n- [ ] Revisiting arrays and slices with generics - Generics are very useful when working with collections. Learn how to write your own Reduce function and tidy up some common patterns.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriskenstein%2Flearn-go-with-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriskenstein%2Flearn-go-with-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriskenstein%2Flearn-go-with-tests/lists"}