...

Text file src/cmd/go/testdata/script/list_export_embed.txt

Documentation: cmd/go/testdata/script

     1# Regression test for https://go.dev/issue/58885:
     2# 'go list -json=Export' should not fail due to missing go:embed metadata.
     3
     4[short] skip 'runs the compiler to produce export data'
     5
     6go list -json=Export -export .
     7
     8-- go.mod --
     9module example
    10go 1.20
    11-- example.go --
    12package example
    13
    14import _ "embed"
    15
    16//go:embed example.go
    17var src string

View as plain text