aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/list_export_e.txt
blob: f6992e221d0b49cdb27b5e33e34ddbaff029cd0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
go list -e -export ./...
! stderr '.'
go list -e -export -json ...

-- 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)
}