runtime: config overlay

This commit is contained in:
visualfc
2025-02-06 11:02:09 +08:00
parent 1b3464b610
commit 0d218bb4b9
7 changed files with 16 additions and 9 deletions

21
runtime/overlay.go Normal file
View File

@@ -0,0 +1,21 @@
package runtime
import (
_ "embed"
)
//go:embed _overlay/go/parser/resolver.go
var go_parser_resolver string
//go:embed _overlay/testing/testing.go
var testing_testing string
//go:embed _overlay/net/textproto/textproto.go
var net_textproto string
var OverlayFiles = map[string]string{
"math/exp_amd64.go": "package math;",
"go/parser/resolver.go": go_parser_resolver,
"testing/testing.go": testing_testing,
"net/textproto/textproto.go": net_textproto,
}