You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The go/types tutorial at https://github.com/golang/example/tree/master/gotypes uses the old loader package in many examples. That package cannot handle modules correctly and is deprecated; all users should use go/packages instead. Let's update the doc to avoid steering people in the wrong direction.
It is very obsolete. Use go/packages instead.
Also, add a go generate command to weave the README.
Fixesgolang/go#60593
Change-Id: Ifaf3ffa588dc3e65fb1e96b39b249a9084d66451
Reviewed-on: https://go-review.googlesource.com/c/example/+/534695
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Commit-Queue: Alan Donovan <adonovan@google.com>
The go/types tutorial at https://github.com/golang/example/tree/master/gotypes uses the old loader package in many examples. That package cannot handle modules correctly and is deprecated; all users should use go/packages instead. Let's update the doc to avoid steering people in the wrong direction.
See also #35872
The text was updated successfully, but these errors were encountered: