Permalink
Browse files

example: correct blackfriday import + correct Go module

  • Loading branch information...
slimsag committed Jan 20, 2019
1 parent 1c994ad commit d330d9ea6fd3e44acccf597fc5a2d980f6b191f0
Showing with 27 additions and 1 deletion.
  1. +8 −0 example/go.mod
  2. +12 −0 example/go.sum
  3. +1 −1 example/markdown/markdown.go
  4. +6 −0 example/mod.go
@@ -1 +1,9 @@
module github.com/gopherjs/vecty/example

require (
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e
github.com/gopherjs/vecty v0.0.0-20190120015316-1c994adef4ed
github.com/microcosm-cc/bluemonday v1.0.2
github.com/russross/blackfriday v2.0.0+incompatible

This comment has been minimized.

@dmitshur

dmitshur Jan 26, 2019

Member

Just wondering, have you considered using the latest v1.x.x tag? How does it compare to v2.0.0+incompatible?

Edit: Oh, I see in commit 2a1e317 that you're trying to use v2 of blackfriday, not v1. In that case, let me rephrase my question as "have you considered using the latest v2.x.x tag?"

This comment has been minimized.

@slimsag

slimsag Jan 28, 2019

Author Member

This is what running go get gave me IIRC, I will look into changing it to the latest v2.x tag manually though

github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
)
@@ -0,0 +1,12 @@
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e h1:JKmoR8x90Iww1ks85zJ1lfDGgIiMDuIptTOhJq+zKyg=
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
github.com/gopherjs/vecty v0.0.0-20190120015316-1c994adef4ed h1:JivGLPCp1XV/9mF/AZ0uf/RDWvIPmXlP2HRUiLVPUdM=
github.com/gopherjs/vecty v0.0.0-20190120015316-1c994adef4ed/go.mod h1:cCfq26X9MMEw/ZgZRpDDNSWfC7CO/u2ba/nGpjEVM/o=
github.com/microcosm-cc/bluemonday v1.0.2 h1:5lPfLTTAvAbtS0VqT+94yOtFnGfUWYyx0+iToC3Os3s=
github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc=
github.com/russross/blackfriday v2.0.0+incompatible h1:cBXrhZNUf9C+La9/YpS+UHpUT8YD6Td9ZMSU9APFcsk=
github.com/russross/blackfriday v2.0.0+incompatible/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
golang.org/x/net v0.0.0-20181220203305-927f97764cc3 h1:eH6Eip3UpmR+yM/qI9Ijluzb1bNv/cAU/n+6l8tRSis=
golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -5,7 +5,7 @@ import (
"github.com/gopherjs/vecty/elem"
"github.com/gopherjs/vecty/event"
"github.com/microcosm-cc/bluemonday"
"gopkg.in/russross/blackfriday.v2"
"github.com/russross/blackfriday"
)

func main() {
@@ -0,0 +1,6 @@
// Package example exists as an empty Go module containing all Vecty example
// dependencies.
//
// It is done such that example dependencies do not end up in downstream go.mod
// files for users who are just importing Vecty alone.
package example

0 comments on commit d330d9e

Please sign in to comment.