{"id":21072792,"url":"https://github.com/jukanntenn/gopl-exercises","last_synced_at":"2025-05-16T05:32:56.338Z","repository":{"id":61628634,"uuid":"444852407","full_name":"jukanntenn/gopl-exercises","owner":"jukanntenn","description":"《Go 程序设计语言》练习题参考答案。","archived":false,"fork":false,"pushed_at":"2022-06-04T07:10:50.000Z","size":753,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T01:02:19.460Z","etag":null,"topics":["excercises","go","golang","tutorial"],"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/jukanntenn.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}},"created_at":"2022-01-05T15:23:27.000Z","updated_at":"2024-11-21T07:13:11.000Z","dependencies_parsed_at":"2022-10-18T17:45:25.480Z","dependency_job_id":null,"html_url":"https://github.com/jukanntenn/gopl-exercises","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jukanntenn%2Fgopl-exercises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jukanntenn%2Fgopl-exercises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jukanntenn%2Fgopl-exercises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jukanntenn%2Fgopl-exercises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jukanntenn","download_url":"https://codeload.github.com/jukanntenn/gopl-exercises/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254474942,"owners_count":22077383,"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":["excercises","go","golang","tutorial"],"created_at":"2024-11-19T18:59:03.926Z","updated_at":"2025-05-16T05:32:55.072Z","avatar_url":"https://github.com/jukanntenn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gopl-exercises\n\n[《Go 程序设计语言》](https://book.douban.com/subject/27044219/)练习题参考答案。\n\n## 搭建练习环境\n\n推荐使用 VS Code 简单几步搭建练习环境。\n\n1. 安装 [VS Code go 拓展](https://marketplace.visualstudio.com/items?itemName=golang.go)。\n2. 打开 VS Code 的 Command Palette，执行 `Go: Install/Update Tools`。\n   \u003e 在一些互联网访问受限的地区，这一步可能会执行失败，一个解决方案是设置代理。例如在中国大陆地区，终端运行 `go env -w GOPROXY=https://goproxy.cn,direct`，然后重启 VS Code 并重新执行 `Go: Install/Update Tools`。\n3. 打开 VS Code settings.json 文件，添加如下配置将 gofmt 设置为 go 代码默认的格式化工具：\n   ```json\n   \"[go]\": {\n     \"editor.defaultFormatter\": \"golang.go\"\n   }\n   ```\n4. 完成，开始愉快地编写 go 程序吧！\n\n## gopl 学习方法\n\n以下是我使用的学习方法，可供参考：\n\n1. 首先通篇逐字阅读[《Go 程序设计语言》](https://book.douban.com/subject/27044219/)（有条件的建议阅读英文原版），对 go 语言建立一个初步的系统性认知。\n2. 认真独立地完成每一章每一小节的练习题，在编辑器中编写代码并编译运行，得到正确的结果，如果练习过程中遇到困难，借此机会回顾书本的内容，试着从书本中寻找解决办法，实在无法解决再试着参考他人的解答。\n3. 练习练习再练习！\n\n## 参考资料\n\n- [gopl](https://github.com/linehk/gopl)：一个包含了[《Go 程序设计语言》](https://book.douban.com/subject/27044219/)中全部示例代码和全部练习题参考答案的项目。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjukanntenn%2Fgopl-exercises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjukanntenn%2Fgopl-exercises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjukanntenn%2Fgopl-exercises/lists"}