| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/go/src/cmd/go/testdata/script/ |
Upload File : |
! go list -export ./...
stderr '^# example.com/p2\np2'${/}'main\.go:7:.*'
! stderr '^go build '
go list -f '{{with .Error}}{{.}}{{end}}' -e -export ./...
! stderr '.'
stdout '^# example.com/p2\np2'${/}'main\.go:7:.*'
go list -export -e -f '{{.ImportPath}} -- {{.Incomplete}} -- {{.Error}}' ./...
stdout 'example.com/p1 -- false -- <nil>'
stdout 'example.com/p2 -- true -- # example.com/p2'
go list -e -export -json=Error ./...
stdout '"Err": "# example.com/p2'
-- go.mod --
module example.com
-- p1/p1.go --
package p1
const Name = "p1"
-- p2/main.go --
package main
import "fmt"
import "example.com/p1"
func main() {
fmt.Println(p1.Name == 5)
}