ctx.createPackage

This commit is contained in:
xushiwei
2023-12-10 15:34:42 +08:00
parent 2c2ffa5c57
commit eee3d37502
6 changed files with 387 additions and 7 deletions

View File

@@ -21,5 +21,16 @@ import (
)
type Package struct {
SSA *ssa.Package
SSA *ssa.Package
EmbedGlobals map[string][]*EmbedFile
}
type EmbedFile struct {
/*
Name string
Size uint64
Hash string // hash of the file (as a hex string)
NeedsData bool // true if this file is embedded as a byte slice
Data []byte // contents of this file (only if NeedsData is set)
*/
}