{"id":19874096,"url":"https://github.com/pythoninthegrass/sololearn_golang","last_synced_at":"2025-07-02T21:05:43.179Z","repository":{"id":45758767,"uuid":"409065488","full_name":"pythoninthegrass/sololearn_golang","owner":"pythoninthegrass","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-23T17:33:24.000Z","size":59,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T17:36:04.815Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.sololearn.com/learning/1164","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/pythoninthegrass.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":"2021-09-22T04:38:06.000Z","updated_at":"2025-02-23T17:33:27.000Z","dependencies_parsed_at":"2024-08-14T10:05:32.747Z","dependency_job_id":"53dab154-90a9-450e-9653-29164612d61e","html_url":"https://github.com/pythoninthegrass/sololearn_golang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pythoninthegrass/sololearn_golang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fsololearn_golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fsololearn_golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fsololearn_golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fsololearn_golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythoninthegrass","download_url":"https://codeload.github.com/pythoninthegrass/sololearn_golang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fsololearn_golang/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263215288,"owners_count":23431894,"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":"2024-11-12T16:21:40.364Z","updated_at":"2025-07-02T21:05:43.145Z","avatar_url":"https://github.com/pythoninthegrass.png","language":"Go","readme":"# SoloLearn - Go\n\n**Table of Contents**\n* [SoloLearn - Go](#sololearn---go)\n  * [Setup](#setup)\n  * [Usage](#usage)\n  * [TODO](#todo)\n  * [Further reading](#further-reading)\n\n## Setup\n```bash\n# install homebrew (macOS)\nbash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n\n# install asdf\nbrew install asdf\n\n# install go\nasdf plugin-add golang https://github.com/kennyp/asdf-golang\nasdf install golang 1.20.4\nasdf local golang 1.20.4\nasdf reshim\n\n# add asdf to ~/.bashrc\nexport ASDF_DIR=\"$HOME/.asdf\"\nexport PATH=\"$ASDF_DIR/shims:$HOME/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH\"\nexport PATH=$(echo -n $PATH | awk -v RS=: -v ORS=: '!x[$0]++' | sed \"s/\\(.*\\).\\{1\\}/\\1/\")\n\n# asdf shell completions\n[[ -f \"$ASDF_DIR/asdf.sh\" ]] \u0026\u0026 . \"$ASDF_DIR/asdf.sh\"\n\n# append $GOPATH to existing $PATH (~/.bashrc)\nexport GOROOT=\"$(asdf where golang)/go\"\nexport GOPATH=$(go env GOPATH)\nexport GOBIN=$GOROOT/bin\nexport PATH=$PATH:$GOBIN\n\n# install delve debugger\ngo install github.com/go-delve/delve/cmd/dlv@latest\n```\n\n* VSCode\n  From @ko31: \u003e Open the Extensions Marketplace (Cmd+Shift+X), search Go and install it. \u003e \u003e [O]pen the Command Palette (Cmd+Shift+P) and run the Go: Install/Update Tools command. \u003e \u003e Install all the Go extensions listed there.\n* Known good config\n\n```json\n{\n    // OTHER CONFIG ITEMS ^^\n    // GOLANG-SPECIFIC\n    \"go.inferGopath\": false,\n    \"go.buildOnSave\": \"workspace\",\n    \"go.lintOnSave\": \"package\",\n    \"go.vetOnSave\": \"package\",\n    \"go.buildTags\": \"\",\n    \"go.buildFlags\": [],\n    \"go.lintFlags\": [],\n    \"go.vetFlags\": [],\n    \"go.coverOnSave\": false,\n    \"go.useCodeSnippetsOnFunctionSuggest\": false,\n    \"go.formatTool\": \"gofmt\",\n    \"go.gocodeAutoBuild\": false,\n    \"go.useLanguageServer\": true,\n    \"go.alternateTools\": {\n        \"go-langserver\": \"gopls\"\n    },\n    \"[go]\": {\n        \"editor.codeActionsOnSave\": {\n            \"source.organizeImports\": false\n        },\n        \"editor.formatOnSave\": true,\n    },\n}\n```\n\n## Usage\n```bash\n# start module and track code's dependencies in tld\ngo mod init git_username/repo_name\n\n# create directory and move to it\nmkdir -p hello \u0026\u0026 cd $_\n\n# edit hello.go\n\n# run program in working directory (downloads deps automatically from go.mod)\ngo run .\n\n# install new dependency\ngo get rsc.io/quote\n\n# cleanup imports\ngo mod tidy\n```\n\n## TODO\n* Extracurricular\n  * Calculate datetime from 9/21/2021 (git init) to 7/19/2022 w/Go stdlib\n    * I.e., course completion duration\n    * [301 days](https://www.timeanddate.com/date/durationresult.html?m1=09\u0026d1=21\u0026y1=2021\u0026m2=7\u0026d2=19\u0026y2=2022)\n\n## Further reading\n\n[Learn Go | Sololearn](https://www.sololearn.com/learning/1164)\n\n[The Missing Package Manager for macOS (or Linux) — Homebrew](https://brew.sh/)\n\n[Introduction | asdf](https://asdf-vm.com/guide/introduction.html)\n\n[asdf to manage multiple Golang on Mac – ookangzheng](https://www.ookangzheng.com/asdf-to-manage-multiple-golang-on-mac/)\n\n[Tutorial: Get started with Go - The Go Programming Language](https://golang.org/doc/tutorial/getting-started)\n\n[Tutorial: Create a Go module - The Go Programming Language](https://golang.org/doc/tutorial/create-module)\n\n[pkg.go.dev](https://pkg.go.dev/)\n\n[How to setup Golang with VSCode - DEV Community](https://dev.to/ko31/how-to-setup-golang-with-vscode-1i4i)\n\n[Quick Start - GoReleaser](https://goreleaser.com/quick-start/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fsololearn_golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoninthegrass%2Fsololearn_golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fsololearn_golang/lists"}