{"id":19136947,"url":"https://github.com/singcl/goo","last_synced_at":"2025-05-06T20:12:27.467Z","repository":{"id":94726122,"uuid":"137338839","full_name":"singcl/goo","owner":"singcl","description":"The way to Go. Go之路.","archived":false,"fork":false,"pushed_at":"2022-06-07T05:40:23.000Z","size":1459,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T14:57:39.401Z","etag":null,"topics":["go","golang"],"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/singcl.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":"2018-06-14T09:46:00.000Z","updated_at":"2022-06-07T05:40:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea163034-5058-441f-88de-240ca2c38281","html_url":"https://github.com/singcl/goo","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/singcl%2Fgoo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Fgoo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Fgoo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Fgoo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/singcl","download_url":"https://codeload.github.com/singcl/goo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252761234,"owners_count":21800127,"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"],"created_at":"2024-11-09T06:35:57.007Z","updated_at":"2025-05-06T20:12:27.440Z","avatar_url":"https://github.com/singcl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 编译输出到指定目录\n\n\\$ go build -o ./exe/values.exe ./values.go\n\n### 实例来源\n\nhttps://gobyexample.com/\n\n### About Learning Go\n\nhttps://www.jianshu.com/p/5ee783bbdcac\n\n### VScode Go 环境搭建\n\nhttps://www.cnblogs.com/Leo_wl/p/8242628.html\n\n### \u003c\u003cGO 入门指南\u003e\u003e\n\nhttps://github.com/Unknwon/the-way-to-go_ZH_CN\n\n### JS 深入系列\n\nhttps://github.com/mqyqingfeng/Blog\n\n### go\n\n~~貌似 import 不能 import 相对路径--网上很多文章都说可以？？the-way-to-go 实例中也说可以？？~~\n\n~~只能 import 绝对路径--即现在$GOPATH 的 src 下查找再在$GOROOT 的 src 下查找。~~\n\n**/advanced/13.4_panic_package.go 中就使用了相对路径包。**\n\n一个文件夹下只能包含一个自定义的 package，但是一个 package 可以在这个文件夹下分成多个文件。\n\ngo install 有 main 包的 go 项目和 没有 main 包的 go 项目\n\ngo install 不带参数可以直接在包所在的文件下执行 或者 go install + 包所在的文件夹名字 来安装\n\n### vscode GO 環境安裝 https://blog.csdn.net/wyy626562203/article/details/83833592\n\n### GO MODULES\n\n**wiki: https://github.com/golang/go/wiki/Modules**\n\n### GOPROXY 设置\n`golang.org`在国内无法访问，导致很多包下载不了。\n\n解决方法一：\n在github上找到镜像仓库clone到$GOPATH/src/golang.org/x/  下面然后 go install 自行安装。\n\n解决方式二：\n设置goproxy：https://goproxy.cn/\n\n```sh\ngo env -w GOPROXY=https://goproxy.cn,direct\necho \"export GOPROXY=https://goproxy.cn\" \u003e\u003e ~/.bash_profile    (MAC/LINUX)\nsource ./.bash_profile\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingcl%2Fgoo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsingcl%2Fgoo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingcl%2Fgoo/lists"}