Can I list all standard Go packages?

后端 未结 3 1671
挽巷
挽巷 2021-01-31 23:56

Is there a way in Go to list all the standard/built-in packages (i.e., the packages which come installed with a Go installation)?

I have a list of packages and

3条回答
  •  庸人自扰
    2021-02-01 00:23

    If you want a simple solution, you could check if a package is present in $GOROOT/pkg. All standard packages are installed here.

提交回复
热议问题