{"id":22332518,"url":"https://github.com/theoddysey/go-tutorial","last_synced_at":"2026-05-01T02:32:12.304Z","repository":{"id":262311228,"uuid":"845630840","full_name":"TheODDYSEY/Go-Tutorial","owner":"TheODDYSEY","description":"Golang Tutorial🪬 with Bank API","archived":false,"fork":false,"pushed_at":"2024-12-25T20:13:17.000Z","size":1430,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T15:45:58.839Z","etag":null,"topics":["api","golang","postman"],"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/TheODDYSEY.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-08-21T16:07:33.000Z","updated_at":"2024-12-25T20:13:21.000Z","dependencies_parsed_at":"2024-11-11T19:23:21.765Z","dependency_job_id":"cd083ef7-883b-4e6a-bbf7-6c8a138e9520","html_url":"https://github.com/TheODDYSEY/Go-Tutorial","commit_stats":null,"previous_names":["theoddysey/go-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheODDYSEY/Go-Tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheODDYSEY%2FGo-Tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheODDYSEY%2FGo-Tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheODDYSEY%2FGo-Tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheODDYSEY%2FGo-Tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheODDYSEY","download_url":"https://codeload.github.com/TheODDYSEY/Go-Tutorial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheODDYSEY%2FGo-Tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32483406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","golang","postman"],"created_at":"2024-12-04T04:18:29.907Z","updated_at":"2026-05-01T02:32:12.289Z","avatar_url":"https://github.com/TheODDYSEY.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Tutorial\n![Go Logo](./go.png)\n\n## Table of Contents\n\n- [Project Overview](#project-overview)\n- [Directory Structure](#directory-structure)\n- [How to Run](#how-to-run)\n  - [Running Individual Projects](#running-individual-projects)\n  - [Running the Bank API Project](#running-the-bank-api-project)\n  - [Running the Memory Test](#running-the-memory-test)\n- [Dependencies](#dependencies)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Project Overview\n\nThis repository contains various Go projects and exercises, each focusing on different aspects of the Go programming language. The projects are organized into directories, each with its own `main.go` file or other relevant files.\n\n\n## Project Descriptions\n\n### 1. Hello-World\nThis directory contains a simple \"Hello, World!\" program to get started with Go.\n\n### 2. Variables\nThis directory demonstrates variable declarations, initializations, and usage in Go.\n\n### 3. IF-else-Switch-Case\nThis directory contains examples of conditional statements, including `if-else` and `switch-case`.\n\n### 4. Arrays\nThis directory demonstrates the usage of arrays in Go.\n\n### 5. Strings-Runes-Bytes\nThis directory contains examples of working with strings, runes, and bytes in Go. It includes string concatenation using a `strings.Builder`.\n\n### 6. Structs-Interfaces\nThis directory demonstrates the usage of structs and interfaces in Go.\n\n### 7. Pointers\nThis directory contains examples of working with pointers in Go.\n\n### 8. Go-Routines\nThis directory demonstrates the usage of goroutines for concurrent programming in Go.\n\n### 9. Channels\nThis directory contains examples of using channels for communication between goroutines.\n\n### 10. Generics\nThis directory demonstrates the usage of generics in Go.\n\n### Bank-api-project\nThis is a more complex project that implements a simple API for managing bank accounts. It includes the following components:\n- **api/api.go**: Defines the API request and response structures and error handling functions.\n- **cmd/api/main.go**: The entry point for the API server.\n- **internal/handlers**: Contains the API handlers, including `api.go` and `get_coin_balance.go`.\n- **internal/middleware**: Contains middleware functions, including `authorization.go`.\n- **internal/tools**: Contains utility functions and database interactions, including `database.go` and `mockdb.go`.\n- **go.mod** and **go.sum**: Go module files for dependency management.\n\n### Memory-test\nThis directory contains a performance test for measuring the time taken to append elements to a slice with and without pre-allocation.\n\n## How to Run\n\n### Running Individual Projects\nTo run any of the individual projects, navigate to the respective directory and execute the `main.go` file using the `go run` command. For example:\n\n```sh\ncd 1.Hello-World\ngo run main.go\n```\n\n### Running the Bank API Project\nTo run the Bank API project, navigate to the `cmd/api` directory and execute the `main.go` file:\n\n```sh\ncd Bank-api-project/cmd/api\ngo run main.go\n```\n\n### Running the Memory Test\nTo run the memory test, navigate to the `Memory-test` directory and execute the `speedtest.go` file:\n\n```sh\ncd Memory-test\ngo run speedtest.go\n```\n\n## Dependencies\nThe Bank API project uses external dependencies, which are managed using Go modules. Ensure you have Go installed and run the following command in the `Bank-api-project` directory to download the dependencies:\n\n```sh\ngo mod tidy\n```\n\n## Contributing\nFeel free to contribute to this repository by submitting pull requests. Ensure that your code follows Go conventions and includes appropriate tests.\n\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoddysey%2Fgo-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheoddysey%2Fgo-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoddysey%2Fgo-tutorial/lists"}