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
(It's not quite clear to me what's the criteria for inclusion of a change to warrant being mentioned in the release notes under the "Minor changes to the library" section (is it documented somewhere?), that's why this is a question.)
Imports returns the list of packages directly imported by pkg; the list is in source order. Package unsafe is excluded.
[...]
In Go 1.9:
Imports returns the list of packages directly imported by pkg; the list is in source order.
[...]
So package unsafe is no longer excluded.
Should this be mentioned in doc/go1.9.html? It would've been saved me some time debugging an unexpected behavior change if I saw it mentioned there, so maybe it'll be helpful to others too.
(It's not quite clear to me what's the criteria for inclusion of a change to warrant being mentioned in the release notes under the "Minor changes to the library" section (is it documented somewhere?), that's why this is a question.)
https://godoc.org/go/types#Package.Imports changed behavior slightly. In Go 1.8, it was documented as:
In Go 1.9:
So package unsafe is no longer excluded.
Should this be mentioned in doc/go1.9.html? It would've been saved me some time debugging an unexpected behavior change if I saw it mentioned there, so maybe it'll be helpful to others too.
Related to #20587.
Related to CL 37694. /cc @griesemer @alandonovan
The text was updated successfully, but these errors were encountered: