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
packages.Load returns a slice of packages.Package, so if you want to single out one of these types of package, you have to iterate through all of them and look for signs that signal one type or another, basically the presence of a _test suffix in the package name and the presence of _test.go files. It would be nice for Load to have a way to explicitly tell you what sort of package it is.
Alternatively, add some kind of type enum field with normal, test, and external test values.
The text was updated successfully, but these errors were encountered:
packages.Load returns a slice of packages.Package, so if you want to single out one of these types of package, you have to iterate through all of them and look for signs that signal one type or another, basically the presence of a _test suffix in the package name and the presence of _test.go files. It would be nice for Load to have a way to explicitly tell you what sort of package it is.
Alternatively, add some kind of type enum field with normal, test, and external test values.
The text was updated successfully, but these errors were encountered: