golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/diagnostics/useinternal.txt (about) 1 This test checks a diagnostic for invalid use of internal packages. 2 3 This list error changed in Go 1.21. 4 5 -- flags -- 6 -min_go=go1.21 7 8 -- go.mod -- 9 module bad.test 10 11 go 1.18 12 13 -- assign/internal/secret/secret.go -- 14 package secret 15 16 func Hello() {} 17 18 -- bad/bad.go -- 19 package bad 20 21 import _ "bad.test/assign/internal/secret" //@diag("\"bad.test/assign/internal/secret\"", re"could not import bad.test/assign/internal/secret \\(invalid use of internal package \"bad.test/assign/internal/secret\"\\)"),diag("_", re"use of internal package bad.test/assign/internal/secret not allowed")