Let's say I want to import version v0.11.0 of Slack Go package.
In CLI I would call: go get github.com/slack-go/[email protected]
but in Go Playground I can only use import.
I've tried import "github.com/slack-go/[email protected]" but that didn't work.
How can I import version v0.11.0 of Slack Go package in Go Playground?
The version you import is determined by
go.mod, andgo getmodifiesgo.mod, so include thego.modin the playground example.https://go.dev/play/p/cBt7MR4Kf03