{"id":23209794,"url":"https://github.com/suraj-kumar00/go-learnings-with-project","last_synced_at":"2025-04-05T12:14:10.866Z","repository":{"id":257871865,"uuid":"860855694","full_name":"Suraj-kumar00/go-learnings-with-project","owner":"Suraj-kumar00","description":"Learning Go with building projects","archived":false,"fork":false,"pushed_at":"2024-11-23T17:01:35.000Z","size":2039,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T23:34:58.711Z","etag":null,"topics":["go","golang","programming","project"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Suraj-kumar00.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":"2024-09-21T10:53:10.000Z","updated_at":"2024-11-23T17:01:38.000Z","dependencies_parsed_at":"2025-02-10T23:44:08.067Z","dependency_job_id":null,"html_url":"https://github.com/Suraj-kumar00/go-learnings-with-project","commit_stats":null,"previous_names":["suraj-kumar00/go-learnings-with-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suraj-kumar00%2Fgo-learnings-with-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suraj-kumar00%2Fgo-learnings-with-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suraj-kumar00%2Fgo-learnings-with-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suraj-kumar00%2Fgo-learnings-with-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Suraj-kumar00","download_url":"https://codeload.github.com/Suraj-kumar00/go-learnings-with-project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332596,"owners_count":20921854,"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","programming","project"],"created_at":"2024-12-18T18:20:17.365Z","updated_at":"2025-04-05T12:14:10.835Z","avatar_url":"https://github.com/Suraj-kumar00.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning Go with building projects\n\n\u003c!-- This is the logo --\u003e\n\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"./Assets/golang.png\" alt=\"Golang Logo\" width=\"100\" /\u003e\n\u003c/div\u003e\n\n\u003c!-- Here is the complete overview of this learning documentery--\u003e\n\n## Why write Go?\n\n- Programming Language developed at Google `2007`\n- Open-sourced in `2009`, pretty young lanugage.\n- Go is natively compiled language\n\n### Go use cases\n\n1. Evolution of Infrastructure\n2. Multi-Threading = Do multiple things at once\n\n**Challenges of Multi-Threading**\n\n- Multiple users editing the same document\n- Multiple users booking at the same time.And yeah this should work in a way that no double booking happens (Prevent double booking)\n  And this concept is called `Concurrency`: It's about dealing with lots of things at once.\n\n  **Build-in Concurrency Mechanism**\n\n---\n\n- C++\n- Java\n\n- [x] Complex code\n- [x] Expensive \u0026 slow\n\n---\n\n- Go\n- [x] Go was desined to run on multiple cores and built to support concurrency\n- [x] Concurrency in Go is **cheap** and **easy**\n\n---\n\n**No build-in Concurrency Mechanism**\n\n- Python\n- Node\n\n#### Main Use Case of GO:\n\n- For performant Applications\n- Running on scaled, distributed systems\n\n### Characterstics of Go\n\n1.  Simple and readable syntax of a `dynamically typed` language like`Python`\n2.  Efficiency and safety of lower-level, `statically typed language` like `C++`\n3.  Server-Side or Backedn language:\n\n- Mircrosercies\n- Web applications\n- Database services\n\n4.  **Technologies that run on Go:**\n\n- Docker\n- Hashicorp **Vault**\n- Kubernetes\n- Cockroach DB\n- and so on...\n\nGo is becoming more and more popular for writing `simple automation applications` and `cli applications` for **DevOps** and **SRE** tasks as well.\n\n### Execution Speed\n\nIn terms of executions speed `Go` is much faster than:\n\n- Python\n- JS\n- Ruby\n- PHP\n  Or pretty much any `Interpreted` language is going to be slower than `Go`\n\n### Compiled\n\nWhen it comes to compilation speed, `Go` is much faster than these language.\n\n- Rust\n- C\n- C++\n- Java\n- C#\n\n#### VM(Vertual Machine)\n\nIts(Go) execution speed is more similar to these language when it comes to `Runtime Speed`. A go program tends to use much less memory then:\n\n- Java\n- C#\n\n---\n\n### How to install Go(Golang) on Ubuntu 22.04 LTS\n\n```bash\n# update your system\nsudo apt update \u0026\u0026 sudo apt upgrade\n\n# install go\nsudo apt install golang-go\n```\n\n**Install go extension if you are using VsCode:**\nExtension name: `Go` official\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuraj-kumar00%2Fgo-learnings-with-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuraj-kumar00%2Fgo-learnings-with-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuraj-kumar00%2Fgo-learnings-with-project/lists"}