{"id":21361988,"url":"https://github.com/codewater404/gocodestudy","last_synced_at":"2026-04-17T02:33:14.600Z","repository":{"id":122088147,"uuid":"579306903","full_name":"CodeWater404/GoCodeStudy","owner":"CodeWater404","description":"记录学习Golang的历程和代码例子","archived":false,"fork":false,"pushed_at":"2025-03-07T06:30:27.000Z","size":30808,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T07:28:29.845Z","etag":null,"topics":["algorithms","design-patterns","gin","go-zero","golang","gorm","grpc","redis"],"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/CodeWater404.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-12-17T08:50:20.000Z","updated_at":"2025-03-07T06:30:31.000Z","dependencies_parsed_at":"2025-03-07T07:35:35.385Z","dependency_job_id":null,"html_url":"https://github.com/CodeWater404/GoCodeStudy","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/CodeWater404%2FGoCodeStudy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWater404%2FGoCodeStudy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWater404%2FGoCodeStudy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWater404%2FGoCodeStudy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeWater404","download_url":"https://codeload.github.com/CodeWater404/GoCodeStudy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243836015,"owners_count":20355615,"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":["algorithms","design-patterns","gin","go-zero","golang","gorm","grpc","redis"],"created_at":"2024-11-22T06:13:00.435Z","updated_at":"2026-04-17T02:33:09.496Z","avatar_url":"https://github.com/CodeWater404.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoCodeStudy\r\n\r\n\u003e 中文 | [English](./readme-en.md)\r\n\r\n\r\n\r\n记录学习`Golang`的历程，包括：基本语法、算法与数据结构、框架（gin、gorm...）、并发、面试题、设计模式....\r\n\r\n详细内容参考目录介绍部分。\r\n\r\n# 学习路线\r\n\r\n1. 基本语法\r\n2. web框架: gin(gin , learn more when i have time:beego , iris) gorm grpc zero(distributed)\r\n3. 中间件: redis mq(rabbitmq) \r\n\r\n\r\n\r\n# 项目推荐\r\n\r\n\u003e 这部分目前关注比较少，后续看到有好的学习项目会继续更新。\r\n\r\n\r\n\r\n## web项目\r\n\r\n1. gin-vue-admin\r\n\r\n\r\n\r\n\r\n\r\n# 目录介绍\r\n\r\n```text\r\n./\r\n├── Gin_demo\t\t\t\tgin框架联系的一些例子\r\n├── LICENSE\r\n├── NetTest\t\t\t\t\t一个关于网络的笔试题\r\n├── algorithm\t\t\t\t算法，主要是acwing和力扣\r\n├── bin\r\n├── concurrent-program\t\t并发编程\r\n├── designPattern\t\t\t设计模式\r\n├── exercise\t\t\t\t一些练习题，包括：并发、excel工具库、编译、笔试题\r\n├── gin_demo_qimi\t\t\t七米的gin学习代码\t\r\n├── gmp\t\t\t\t\t\tgmp模型相关代码\r\n├── go-redis\t\t\t\tredis的操作使用\r\n├── go-zero\t\t\t\t\tgo-zero的学习\r\n├── google_go_study\t\t\t一个学习golang的基本语法练习\r\n├── grpc\t\t\t\t\tgrpc的学习\r\n├── log-project\t\t\t\t一个日志库的项目学习（未完成）\r\n├── pkg\r\n├── readme-en.md\r\n├── readme.md\r\n└── web_exercise_qimi       七米的付费视频代码\r\n```\r\n\r\n\r\n\r\n# 一些常用的命令\r\n\r\n1. `go env`: 列出go的环境变量。\r\n\r\n2. `go env -w GO111MODULE=on`; the parametere w means setting environment in go environment.This command \"set go111module=on\" is void.\r\n\r\n\t\u003e 在 Go 1.11 版本之后，Go 引入了模块化开发的特性，默认启用了 Go Modules。GO111MODULE 是一个控制模块支持的环境变量，它有以下几个可选值：\r\n\t\u003e auto：根据当前工作目录自动启用或禁用模块支持（默认值）。\r\n\t\u003e on：强制启用模块支持，无视当前工作目录。\r\n\t\u003e off：禁用模块支持，将使用旧版的 GOPATH 模式进行开发。\r\n\t\u003e 通过执行 go env -w GO111MODULE=off 命令，您将模块支持设置为禁用状态，即使用旧版的 GOPATH 模式进行开发。\r\n\r\n\t\u003e 请注意，这是一个全局设置，将会影响您所有的 Go 项目。如果您希望在某个特定的项目中启用模块支持，可以在该项目的根目录下创建一个名为 go.mod 的文件，或者执行 go mod init 命令来初始化一     个新的模块。(有时候命令报错，可以关闭终端重新尝试下)\r\n\r\n3. `go get -u XXXX`: 获取XXXX包。\r\n\t-u表示更新已安装的包或模块到最新版本。如果已经安装了包，-u 标志将检查远程仓库是否有更新的版本，并将其下载并安装到本地。\r\n\t-d 只下载不安装\r\n\t-f 只有在你包含了 -u 参数的时候才有效，不让 -u 去验证 import 中的每一个都已经获取了，这对于本地 fork 的包特别有用\r\n\t-fix 在获取源码之后先运行 fix，然后再去做其他的事情\r\n\t-t 同时也下载需要为运行测试所需要的包\r\n\t-u 强制使用网络去更新包和它的依赖包\r\n\t-v 显示执行的命令信息\r\n\r\n4. \r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewater404%2Fgocodestudy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewater404%2Fgocodestudy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewater404%2Fgocodestudy/lists"}