Closed KiddoV closed 2 years ago
'go get'
I tried the following and got no error:
$ git clone git@github.com:hexops/vecty.git
$ cd vecty/example/markdown/
$ go mod tidy
go: downloading github.com/slimsag/blackfriday v2.0.0+incompatible
go: downloading github.com/microcosm-cc/bluemonday v1.0.2
go: downloading golang.org/x/net v0.0.0-20181220203305-927f97764cc3
Are you running this example from inside the vecty project? Did you create your own go.mod
file?
@soypat yes. I create my own go.mod cuz inside the markdown
only have 1 go file
Change your imports to be
import (
"github.com/hexops/vecty"
"github.com/hexops/vecty/elem"
"github.com/hexops/vecty/event"
"github.com/microcosm-cc/bluemonday"
"github.com/russross/blackfriday/v2"
)
And run go mod tidy
again.
What is causing the problem is "github.com/slimsag/blackfriday", which has a malformed go.mod
file
@soypat It works! Thanks!
But now I got this error running with gopherjs serve
Any idea?
Use wasmserve!
Please read the example instructions https://github.com/hexops/vecty/tree/main/example
Thanks, it works now!
I download the example and...
$ cd markdown $ go mod tidy
...and got this error:
any idea?