This project demonstrates the implementation of the strategy design pattern in Go for various text processing tasks. It allows you to choose and apply different algorithms interchangeably through a common interface.
- Implements the
TextProcessor
interface to define a standard way of handling text processing tasks. - Provides concrete strategy implementations for:
- Sorting (e.g., Bubble Sort, Insertion Sort)
- Regular expression filtering
- (You can add more strategies as needed)
- Utilizes a
TextProcessingContext
to hold the chosen strategy and facilitates processing text based on the chosen strategy.
- Clone this repository:
git clone https://github.com/mariamikv/Text-Processing.git
- Install dependencies (if any):
go mod download
- Run the Program:
go run main.go