{"id":29248647,"url":"https://github.com/rstudio-tech/golang_learning","last_synced_at":"2025-07-04T00:08:23.042Z","repository":{"id":269527028,"uuid":"898903237","full_name":"rstudio-tech/Golang_Learning","owner":"rstudio-tech","description":"My Golang Journey","archived":false,"fork":false,"pushed_at":"2024-12-05T09:16:19.000Z","size":7685,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T17:55:28.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rstudio-tech.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,"zenodo":null}},"created_at":"2024-12-05T08:58:18.000Z","updated_at":"2024-12-10T11:47:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6f1d1dd-552f-4c33-95ad-81e949e81f71","html_url":"https://github.com/rstudio-tech/Golang_Learning","commit_stats":null,"previous_names":["atlas-2192/golang_learning","rstudio-tech/golang_learning"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rstudio-tech/Golang_Learning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio-tech%2FGolang_Learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio-tech%2FGolang_Learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio-tech%2FGolang_Learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio-tech%2FGolang_Learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstudio-tech","download_url":"https://codeload.github.com/rstudio-tech/Golang_Learning/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio-tech%2FGolang_Learning/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263421931,"owners_count":23464051,"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":[],"created_at":"2025-07-04T00:08:22.297Z","updated_at":"2025-07-04T00:08:23.000Z","avatar_url":"https://github.com/rstudio-tech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"###環境裝置\n基本上其實只要參考[Simple Patrick:My Go Development Environment](http://yinghau76.github.io/2013/12/14/my-go-development-environment/)那篇應該就可以．只是我這邊記錄一下我遇到的問題，不知道其他人會不會遇到．\n\n* brew install go 會成功但是一直跳出要 brew link go，然後如果你打brew link go就會跳出permission不足．找不到答案，於是去官方網站抓下來裝\n* Sublime text2跟GoSublime 是可以完美結合．DashDoc 也可以正常用，只是要先裝Dash App Store裝好．\n* 弄好了這一切，其實看起來是完美了．但是就Golang的特性，沒有debugger似乎很難做更一步地解決問題．\n* 於是去找了[這篇文章](ttp://www.goinggo.net/2013/06/installing-go-gocode-gdb-and-liteide.html)裝LiteIDE然後跑Golang\n* 幾個大方向\n  * 抓GDB安裝\n  * 建立一個codesign\n  * 把GDB 簽署當作可以信任的執行檔\n* 一開始LiteIDE可能會出現go bin not found 的錯誤，需要把設定重新跑好\n* [View] -\u003e [Edit Environment]  (我的可以參考一下)\n\n    GOROOT=/usr/local/go\n    GOBIN=/usr/local/go/bin/\n    GOARCH=amd64\n    GOOS=darwin\n    CGO_ENABLED=1\n \n    PATH=$GOROOT/bin:$PATH\n \n    LITEIDE_GDB=/usr/local/bin/gdb\n    LITEIDE_MAKE=make\n    LITEIDE_TERM=/usr/bin/open\n    LITEIDE_TERMARGS=-aTerminal\n    LITEIDE_EXEC=/usr/X11R6/bin/xterm\n    LITEIDE_EXECOPT=-e\n* 不過text highlighter 跟 dash無法整合有點痛苦，可能會拿LiteIDE作為debug 的工作．\n* 其實Sublime Text2 也是有 GDB support 的","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstudio-tech%2Fgolang_learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frstudio-tech%2Fgolang_learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstudio-tech%2Fgolang_learning/lists"}