Is there a way to browse the stdlib packages in pkg.go.dev?

224 views
Skip to first unread message

will....@gmail.com

unread,
Feb 2, 2025, 1:20:30 AM2/2/25
to golang-nuts
To be clear, I mean see a listing of all the packages in the stdlib, or at least the root package directories.

Thanks,
Will

Axel Wagner

unread,
Feb 2, 2025, 1:28:15 AM2/2/25
to will....@gmail.com, golang-nuts

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/6391c491-2784-4211-9b29-3b9d3032d13fn%40googlegroups.com.

Axel Wagner

unread,
Feb 2, 2025, 1:31:31 AM2/2/25
to will....@gmail.com, golang-nuts
one way to discover this: On any standard library package, you can see the hierarchy in the top-left corner. Clicking on "Standard library" gets you to the overview.

2025-02-02-072845_465x156_scrot.png

tapi...@gmail.com

unread,
Feb 3, 2025, 12:50:28 AM2/3/25
to golang-nuts
An alternative std package list: https://docs.go101.org/std/index.html

Mike Schinkel

unread,
Feb 3, 2025, 12:56:37 AM2/3/25
to will....@gmail.com, GoLang Nuts Mailing List
> On Feb 2, 2025, at 1:20 AM, will....@gmail.com <will....@gmail.com> wrote:
>
> To be clear, I mean see a listing of all the packages in the stdlib, or at least the root package directories.
>

If per-chance you use JetBrain's Goland then you can view all of Go's standard library packages in the project's file tree view for any Go project.

Look at the bottom for the top-level node named "External Libraries" and then under that look for "Go SDK <version>".

-Mike

Will Faught

unread,
Feb 3, 2025, 9:36:50 AM2/3/25
to Axel Wagner, golang-nuts
Thanks. I tried searching for std, but it just did the literal search, as you’d expect.

Will

On Feb 1, 2025, at 10:27 PM, Axel Wagner <axel.wa...@googlemail.com> wrote:



Davis Goodin

unread,
Feb 5, 2025, 4:44:07 PM2/5/25
to golang-nuts
Recently I noticed that https://pkg.go.dev takes you to the main/search page, but https://go.dev/pkg takes you right to https://pkg.go.dev/std. It seems like some quirk of the go.dev/pkg redirect, but maybe an interesting shortcut if you like typing in a short URL.
Reply all
Reply to author
Forward
0 new messages