github.com/megatontech/mynoteforgo@v0.0.0-20200507084910-5d0c6ea6e890/源码/cmd/go/testdata/script/list_std.txt (about)

     1  [!gc] skip
     2  
     3  # listing GOROOT should only find standard packages
     4  cd $GOROOT/src
     5  go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' ./...
     6  ! stdout .
     7  # TODO: ignore _/blah/go/src in output
     8  
     9  # our vendored packages should be reported as standard
    10  go list std cmd
    11  stdout internal/x/net/http2/hpack
    12  stdout cmd/vendor/golang\.org/x/arch/x86/x86asm