This Go application clones a Git repository, extracts text using git2gpt, saves the text to a file, and deletes the repository folder. It provides a web interface to perform these actions.
Features
Clone a Git repository
Extract text using git2gpt
Save extracted text to a file
Delete the cloned repository folder
Usage
Clone Repository: Clones the specified Git repository into a temporary directory.
Extract Text: Uses git2gpt to extract text from the cloned repository.
Save Output: Saves the extracted text to a specified file.
Clean Up: Deletes the temporary directory.
Endpoints
POST/converter?url=<repo_url>: Starts the conversion process. Replace <repo_url> with the URL of the Git repository.
Setup
Install Dependencies: Ensure you have Go installed and set up. Install the go-git package using: