add info about Go support to README.md

pull/43/head
alex-sikach 2023-05-04 14:35:17 +03:00
rodzic f7050402a6
commit 288af47ca3
1 zmienionych plików z 28 dodań i 0 usunięć

Wyświetl plik

@ -59,3 +59,31 @@ This is just a quick prototype I threw together in a few hours. There are many p
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=biobootloader/wolverine&type=Date)](https://star-history.com/#biobootloader/wolverine)
# Go Usage:
#### The Wolverine supports .go files to be executed now!
## Setup step by step:
1) git clone https://....<the_link>
2) cd wolverine/wolverine/GoLang/internal/main
3) go mod install
4) go build -o ../../../../../your_wish_folder/wolverine.exe
5) cd ../../../../../your_wish_folder
6) > .env
7) fill the .env file like in the example below, but with your personal data
### Example .env:
OPENAI_API_KEY=gorinfwe:mfwbevnmowemo9fn20f439vn03v4
GPT_MODEL=text-davinci-003
ATTEMPTS_TO_TRY=15
#### Remember that each attempt is a request to GPT so think twice about \<ATTEMPTS_TO_TRY> value
#### GPT 4 is the most preferable model here, but you can try to use any model
## Example Usage
./wolverine.exe main
#### main here is your filename WITHOUT .go extension
#### If you see the "Success" message, then you must have obtained a file enterFilename+"__fixed".go>, and it's free of any compile errors. So you can freely run it
go run main__fixed.go