Ask coding questions

← Back to all posts
How would I put the run part in .replit file for .go

Im new to
And i want to test some stuff out with this discord bot github code found here
I am not the creator of this bot im just using the coding to see some features i could get by using .go

Answered by Coder100 (15394) [earned 5 cycles]
View Answer
Coder100 (15394)

Use go run:

run="go run [file].go"
RohilPatel (1467)

Just do something like this:

language = "go"
run="go run mainfilehere.go"

Please mark as correct if this helped