From 288af47ca3861c835b625a0db6f6356a5f401d24 Mon Sep 17 00:00:00 2001 From: alex-sikach Date: Thu, 4 May 2023 14:35:17 +0300 Subject: [PATCH] add info about Go support to README.md --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index b9478de..ff1335b 100644 --- a/README.md +++ b/README.md @@ -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://.... + 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 \ 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