2019-04-24 09:33:45 -06:00
|
|
|
package links
|
|
|
|
|
|
|
|
import (
|
2019-11-28 00:00:44 -07:00
|
|
|
"fmt" //@link(`fmt`,"https://pkg.go.dev/fmt")
|
2019-04-24 09:33:45 -06:00
|
|
|
|
2019-11-28 00:00:44 -07:00
|
|
|
"golang.org/x/tools/internal/lsp/foo" //@link(`golang.org/x/tools/internal/lsp/foo`,`https://pkg.go.dev/golang.org/x/tools/internal/lsp/foo`)
|
2019-11-13 21:53:00 -07:00
|
|
|
|
2019-11-28 00:00:44 -07:00
|
|
|
_ "database/sql" //@link(`database/sql`, `https://pkg.go.dev/database/sql`)
|
2019-11-13 21:53:00 -07:00
|
|
|
|
2019-11-28 00:00:44 -07:00
|
|
|
errors "golang.org/x/xerrors" //@link(`golang.org/x/xerrors`, `https://pkg.go.dev/golang.org/x/xerrors`)
|
2019-04-24 09:33:45 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
_ fmt.Formatter
|
|
|
|
_ foo.StructFoo
|
2019-11-13 21:53:00 -07:00
|
|
|
_ errors.Formatter
|
2019-04-24 09:33:45 -06:00
|
|
|
)
|
2019-07-07 16:25:19 -06:00
|
|
|
|
|
|
|
// Foo function
|
|
|
|
func Foo() string {
|
|
|
|
/*https://example.com/comment */ //@link("https://example.com/comment","https://example.com/comment")
|
2019-11-13 21:53:00 -07:00
|
|
|
|
2019-07-07 16:25:19 -06:00
|
|
|
url := "https://example.com/string_literal" //@link("https://example.com/string_literal","https://example.com/string_literal")
|
|
|
|
return url
|
|
|
|
}
|