{"id":13630337,"url":"https://github.com/soypat/gopherlings","last_synced_at":"2025-04-13T02:26:07.976Z","repository":{"id":37267202,"uuid":"505462535","full_name":"soypat/gopherlings","owner":"soypat","description":"📘️ Learn Go by fixing tiny incorrect programs","archived":false,"fork":false,"pushed_at":"2024-03-19T11:24:11.000Z","size":54,"stargazers_count":703,"open_issues_count":1,"forks_count":47,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-12T09:11:26.517Z","etag":null,"topics":["examples","examples-go","fix-the-code","go","golang","learn","learn-by-doing","learn-go","learn-golang","learn-to-code"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soypat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["soypat"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-06-20T13:54:17.000Z","updated_at":"2024-10-03T02:14:01.000Z","dependencies_parsed_at":"2024-06-18T21:13:47.702Z","dependency_job_id":"d3649e68-4628-43f3-a251-7b7290e991f2","html_url":"https://github.com/soypat/gopherlings","commit_stats":{"total_commits":33,"total_committers":8,"mean_commits":4.125,"dds":"0.24242424242424243","last_synced_commit":"700bd0113dc4e496439c3aa6207623a03e71d7dc"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soypat%2Fgopherlings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soypat%2Fgopherlings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soypat%2Fgopherlings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soypat%2Fgopherlings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soypat","download_url":"https://codeload.github.com/soypat/gopherlings/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248656154,"owners_count":21140650,"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":["examples","examples-go","fix-the-code","go","golang","learn","learn-by-doing","learn-go","learn-golang","learn-to-code"],"created_at":"2024-08-01T22:01:39.281Z","updated_at":"2025-04-13T02:26:07.956Z","avatar_url":"https://github.com/soypat.png","language":"Go","readme":"# gopherlings\n📘️ Learn Go by fixing tiny incorrect programs\n\nThis project was directly inspired by the great [ziglings](https://github.com/ratfactor/ziglings) project which itself was inspired by [rustlings](https://github.com/rust-lang/rustlings).\n\nFor a first time learner it is suggested you complement this material with another source such as\n\n- [Go by example](https://gobyexample.com/). A lot of material here is based on this project!\n- [Go go-to guide](https://yourbasic.org/golang/) by yourbasic. Great source for beginners.\n\n## Intended Audience\nThese exercises will probably be difficult if you've never programmed before. \n\nThe exercises should be self-contained and self-explained, though this is a WIP\nand suggestions are welcome!\n\n## Instructions: Running exercises\nRequires a [Go installation](https://go.dev/dl/) to run the examples.\n### Instructions using VSCode\n\n1. Download the repository (or alternatively clone it)\n\n2. Install the VSCode **Go** extension authored by _Go Team at Google_\n\n3. Open the `gopherlings` folder in VSCode\n\n4. Navigate to the exercise file, i.e. [`exercises/001-hello/hello.go`](exercises/001-hello/hello.go)\n\n5. Once the `hello.go` file is open you may edit it and press \u003ckbd\u003eF5\u003c/kbd\u003e to run it. Output will be shown in the Debug Console.\n\n### Instructions using terminal\n1. Clone repository\n    ```sh\n    git clone https://github.com/soypat/gopherlings.git \n    ```\n\n2. Navigate to example's directory\n    ```sh\n    cd gopherlings/exercises/001-hello\n    ```\n\n3. Edit the file so it is correct and run it with `go run`\n    ```sh\n    go run hello.go\n    ```\n   Optionally, instead of step 3, use `gopherlings watch` to auto reload your code after you save your code. Then you will see your code output without any action. You can simply focus on your code.\n   ```sh\n   go install github.com/soypat/gopherlings/cmd/gopherlings@latest\n   gopherlings watch\n   gopherlings help  # To see other commands\n   ```\n   Note: You need to define your `GOBIN` environment variable before running `go install` and add it to your `PATH`. `GOBIN` specifies the directory to which go binaries are installed to.\n\n## Roadmap\n#### Short term\n* Add quizzes after $n$ exercises.\n  - Possibly add several quizzes of varying difficulty inside quiz directory.\n* Improve the helper program.\n  - A `hint` subcommand or interactive hints during the `watch` command.\n  - Allow `run` to take an argument that runs a specific exercise.\n  - Add a subcommand to run all exercises and check them against expected output.\n  - Catch errors that prevent the helper from running exercises (like an incomplete Go installation).\n\n#### Long term\n* Have exercises that cover the entire [Go spec](https://go.dev/ref/spec).\n","funding_links":["https://github.com/sponsors/soypat"],"categories":["Go","Programming and Scripting"],"sub_categories":["Go"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoypat%2Fgopherlings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoypat%2Fgopherlings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoypat%2Fgopherlings/lists"}