Jereme C

@jeremejazz (1)
Are Golang dependencies & packages supported?
posted to Ask by myorama

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

Are Golang dependencies & packages supported?
posted to Ask by myorama

@tranzfat yes you can use external packages in go repl

Are Golang dependencies & packages supported?
posted to Ask by myorama

@mccolljr You can actually use community packages via Go modules. Try running a script that uses an external module ("github.com/..."

Are Golang dependencies & packages supported?
posted to Ask by myorama

@tim15 You can use go modules. Running will automatically create a go.mod file