mirror of
https://github.com/golang/go
synced 2024-11-19 03:04:42 -07:00
f270e23f6a
This is the first step to surfacing potential fixes and suggestions to a user's go.mod file. Specifically, it will show a warning if you have a dependency that is not used, or if a dependency is declared as indirect when it should be direct and vice versa. This CL adds functionality for version of Go that are >= 1.14. Updates golang/go#31999 Change-Id: Id60fa0ee201dcd843f62e2659dda8e795bd671db Reviewed-on: https://go-review.googlesource.com/c/tools/+/211937 Run-TryBot: Rohan Challa <rohan@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
11 lines
136 B
Go
11 lines
136 B
Go
// Package indirect does something
|
|
package indirect
|
|
|
|
import (
|
|
"golang.org/x/tools/go/packages"
|
|
)
|
|
|
|
func Yo() {
|
|
var _ packages.Config
|
|
}
|