Are Golang dependencies & packages supported?
Hi, I need some community packages in a Go project
I've seen packages are configurable through UI but only for javascript, python and ruby languages (https://repl.it/site/docs/repls/packages)
Is there any news about Universal Package Manager, as announced 5 month ago? https://repl.it/talk/announcements/Announcing-Universal-Package-Manager/5201
Will be pretty cool to manage Golan packages too! :D
Hi I have just bumped into this. I tried running a code that requires an external package and it worked. As of 1.11 Go supports modules.
Currently no package manager on the UI unlike python or javascript but if you run the script with an import statment requiring an external package, go will automatically download the package and generate go.mod at the same time.
Here is the example script I have tried to run that uses goquery https://repl.it/@jeremejazz/Golang-1
I'm a little disappointed at the lack of response by the repl.it team about this.
Was going to ask this same question, updates? I'm guessing no...
Any updates?
Go supportes packages when you import them instead of the lazy way
import (
"main/api"
)
You would instead do
import (
api "main/api"
)
To future people reading this, if you're getting a GOROOT error, this is a solution. You have to name your packages when you import them.