Ask coding questions

← Back to all posts
How would I put the run part in .replit file for .go
h
DAREALYTYGRUNN1 (0)

Im new to
.go
And i want to test some stuff out with this discord bot github code found here https://github.com/jonas747/yagpdb
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
Comments
hotnewtop
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