{"id":20706369,"url":"https://github.com/pythoncoderunicorn/golang","last_synced_at":"2025-07-05T09:33:04.657Z","repository":{"id":223758732,"uuid":"761470123","full_name":"PythonCoderUnicorn/GoLang","owner":"PythonCoderUnicorn","description":"a repo for my Go Language learning","archived":false,"fork":false,"pushed_at":"2024-07-21T19:30:17.000Z","size":1275,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T20:23:57.710Z","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/PythonCoderUnicorn.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":"2024-02-21T22:20:17.000Z","updated_at":"2024-07-21T19:30:20.000Z","dependencies_parsed_at":"2024-02-21T23:28:55.060Z","dependency_job_id":"247c287e-e831-4ccd-a48c-b5467ec3fb47","html_url":"https://github.com/PythonCoderUnicorn/GoLang","commit_stats":null,"previous_names":["pythoncoderunicorn/golang"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2FGoLang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2FGoLang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2FGoLang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2FGoLang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PythonCoderUnicorn","download_url":"https://codeload.github.com/PythonCoderUnicorn/GoLang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242973983,"owners_count":20215251,"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-17T01:22:50.992Z","updated_at":"2025-03-11T05:18:07.274Z","avatar_url":"https://github.com/PythonCoderUnicorn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoLang\n\na repo for my Go Language learning\n\n---\n\n### Documentation\n\nhttps://go.dev/doc/tutorial/getting-started\n\n### Install Go \n\n```\nsudo apt install golang-go \n```\n\n\n### start a project\n\n1. `mkdir folder; cd folder`\n2. `go mod init folder/file`  this gives a pseudo link for local Go `.mod` to reference. Name it the same as the folder your code will be in with main or hello.go\n3. `touch hello.go`\n4. `go run . `\n5. for an executable file `go build hello.go` which compiles and makes `hello` file =\u003e `./hello`\n\n\n\n\n### import external package\n\ncheck out packages https://pkg.go.dev/  but all of the Go packages are from GitHub.\n\nto import a package: \n\n1. `go get -u github.com/`  , example:  `go get -u github.com/ttacon/chalk`\n2. inside the main file import the github link inside the `import( )`, example:  `import( \"fmt\"; \"github.com/ttacon/chalk\" )` \n3. run `go mod tidy` for package maintenance \n4. run program `go run .`\n\n\n#### errors\n\nGo lang does not like when you have packages imported or variables etc declared and not used, comment the things not used to avoid any errors or warnings. \n\n\n\n----\n\nStarter template\n\n```Go\npackage main\n\nimport \"fmt\"\n\nvar pl = fmt.Println   // declare a shortcut for fmt.Println\n\nfunc main() {\n  pl(\"hello Go\")\n}\n\n```\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoncoderunicorn%2Fgolang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoncoderunicorn%2Fgolang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoncoderunicorn%2Fgolang/lists"}