Как получить список всех #go модулей, которы можно обновить? Запоминается так же легко, как и
tar zxvf
, то есть очень легко (или баш алиас):
go list -m -u all
0. "go", obvious.
1. "list" lists the named packages, one per line.
2. The "-m" flag causes list to list modules instead of packages.
3. The "-u" flag adds information about available upgrades.
4. The special pattern "all" specifies all the active modules, first the main module and then dependencies sorted by module path.
В ответе будет что-то такое:
github.com/cristaloleg/lolkek
golang.org/x/text v0.3.0 [v0.3.2]
gopkg.in/ini.v1 v1.39.0 [v1.46.0]