How to list packages and version

How do I list the version of the packages?

I can’t find anything about it. I thought it would be under go list

1 Like

It is totally unclear what you are trying to do. Which versions of which packages (modules?) do you want to list? Where do you want to do this?

As an example when I do this I get all packages/modules

go list ...

Is there a way to see the version for each one?

Try

$ go list -m  all

See the details on https://golang.org/cmd/go/#hdr-List_packages_or_modules.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.