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.
garble/testdata/scripts/embed.txt

32 lines
302 B
Plaintext

env GOPRIVATE=*
garble build
exec ./main
cmp stdout main.stdout
-- go.mod --
module test/main
go 1.16
-- main.go --
package main
import (
_ "embed"
"fmt"
)
//go:embed test.txt
var x string
func main() {
fmt.Printf("%q\n", x)
}
-- test.txt --
test content
-- main.stdout --
"test content\n"