You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
410 B
Plaintext
25 lines
410 B
Plaintext
garble build
|
|
exec ./main
|
|
cmp stderr main.stderr
|
|
|
|
-- go.mod --
|
|
module foo.com/main
|
|
-- main.go --
|
|
package main
|
|
|
|
import "foo.com/main/imported"
|
|
|
|
func main() {
|
|
println(imported.ImportedVar)
|
|
println(imported.ImportedConst)
|
|
}
|
|
-- main.stderr --
|
|
imported var value
|
|
imported const value
|
|
-- imported/imported.go --
|
|
package imported
|
|
|
|
var ImportedVar = "imported var value"
|
|
|
|
const ImportedConst = "imported const value"
|