userPrompt=output+"\nFollowing are the errors, please fix the code. Write it again, and write only source code along with same test cases with no further explanation. The format should be ```rust <yourcode + testcases> ```"
}else{
fmt.Printf("Compiled successfully. Here is the output: %v",output)
userPrompt="exit"
}
// if err != nil {
// userPrompt = output + "\nFollowing are the errors, please fix the code. Write it again, and write only source code along with same test cases with no further explanation. The format should be ```rust <yourcode + testcases> ```"
// } else {
// fmt.Printf("Compiled successfully. Here is the output: %v", output)