1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:04:57 -07:00
go/gopls/go.mod
Rebecca Stambler 6b505debf4 gopls: use mvdan.cc/xurls for textDocument/documentLink
Our current implementation isn't robust, and it doesn't seem worth it to
invest significant effort in improving it when this library exists.

Also, make the protocol part of the default URL regex non-optional, as
the alternative is that any string of the format "foo.bar" will appear
to be a link.

Updates golang/go#33505

Change-Id: Ia430a1c193eded394f8af12050bdd4dc2a9ccc94
Reviewed-on: https://go-review.googlesource.com/c/tools/+/212517
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-12-26 21:20:25 +00:00

14 lines
287 B
Modula-2

module golang.org/x/tools/gopls
go 1.11
require (
github.com/sergi/go-diff v1.0.0
github.com/stretchr/testify v1.4.0 // indirect
golang.org/x/tools v0.0.0-20191017151554-a3bc800455d5
honnef.co/go/tools v0.0.1-2019.2.3
mvdan.cc/xurls/v2 v2.1.0
)
replace golang.org/x/tools => ../