Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wambita/go-katas
my solutions for various katas in golang
https://github.com/wambita/go-katas
Last synced: 6 days ago
JSON representation
my solutions for various katas in golang
- Host: GitHub
- URL: https://github.com/wambita/go-katas
- Owner: Wambita
- License: apache-2.0
- Created: 2024-05-02T15:42:41.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-07-17T08:29:21.000Z (7 months ago)
- Last Synced: 2024-12-05T09:14:31.190Z (2 months ago)
- Language: Go
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Katas
## Overview
This repository contains a collection of coding katas and their solutions implemented in Go (Golang). Each kata is a small programming challenge that helps in honing your Go programming skills through practice and repetition. The solutions are structured to demonstrate idiomatic Go programming practices and efficient algorithmic solutions.
## Repository Structure
Each directory within this repository represents a different kata. Within each directory, you will find at least two files:
- `solution.go`: This file contains the Go code implementing the solution to the kata.
- `solution_test.go`: This file contains tests for the solution using Go's built-in testing framework.## Getting Started
### Prerequisites
Before you can run the solutions in this repository, you will need:
- Go installed on your machine. Go can be downloaded and installed from [the official Go website](https://golang.org/dl/).### Cloning the Repository
To get started with these katas, clone this repository to your local machine:
```bash
git clone https://github.com/yourusername/go-katas.git
cd go-katas```
### Running the SolutionsTo run a specific solution, navigate to the directory of the kata and run the Go file. For example:
```bash
cd path/to/kata
go run solution.go```
### Running the TestsTo execute the tests for a specific solution, use the following command:
```bash
go test -v
```
This command will run the tests associated with the kata's solution, providing verbose output that shows which tests have passed and which have failed.### Contributing
Contributions to this repository are welcome, especially in the form of additional katas and solutions, or improvements to existing solutions.
If you wish to contribute:
- Fork the repository.
- Create a new branch for your contribution (git checkout -b new-kata).
- Add your kata and solution.
- Push the changes to your fork (git push origin new-kata).
- Submit a pull request.Please ensure your code adheres to clean code principles and is well-commented.
### License
This project is licensed under the MIT License - see the LICENSE file for details.
### Author
##### [Wambita](https://github.com/Wambita)