diff --git a/go/gcexportdata/example_test.go b/go/gcexportdata/example_test.go index d16d7129a8a..247270629de 100644 --- a/go/gcexportdata/example_test.go +++ b/go/gcexportdata/example_test.go @@ -51,7 +51,8 @@ func ExampleRead() { fmt.Printf("Package members: %s...\n", pkg.Scope().Names()[:5]) println := pkg.Scope().Lookup("Println") posn := fset.Position(println.Pos()) - posn.Line = 123 // make example deterministic + posn.Line = 123 // make example deterministic + posn.Filename = filepath.ToSlash(posn.Filename) // make example deterministic fmt.Printf("Println type: %s\n", println.Type()) fmt.Printf("Println location: %s\n", posn)