all: add support for the embed package

This commit is contained in:
Ayke van Laethem
2021-11-15 01:56:49 +01:00
committed by Ron Evans
parent fd20f63ee3
commit 87a4676137
12 changed files with 645 additions and 14 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ var (
// alloc: heap allocations during init interpretation
// pack: data created when storing a constant in an interface for example
// string: buffer behind strings
packageSymbolRegexp = regexp.MustCompile(`\$(alloc|pack|string)(\.[0-9]+)?$`)
packageSymbolRegexp = regexp.MustCompile(`\$(alloc|embedfsfiles|embedfsslice|embedslice|pack|string)(\.[0-9]+)?$`)
// Reflect sidetables. Created by the reflect lowering pass.
// See src/reflect/sidetables.go.