Documentation
¶
Overview ¶
module serves to manipulate wasm module binaries and interact with them. Currently its only functionality is to set a custom section.
The implementation was adapted from: https://github.com/hypermodeinc/modus/blob/b2a472c0cf869fab67868d8f5067a3bd44609e58/sdk/go/tools/modus-go-build/wasm/wasm.go#L33
Index ¶
- Constants
- func CutSchematicsPrefix(name string) (string, string, bool)
- func GetCustomSections(wasm []byte) map[string][]byte
- func StripSchematicsPrefix(name string) string
- func ValidatePreamble(wasm []byte) error
- func WithCustomSectionCMD(wasm []byte, name string, cmd []string) []byte
- func WithCustomSectionData(wasm []byte, name string, data []byte) []byte
- func WithoutCustomSection(wasm []byte, name string) ([]byte, []byte)
Constants ¶
View Source
const ( PrefixSchematics = "yoke.schematics:" PrefixSchematicsCMD = "yoke.schematics.cmd:" )
Variables ¶
This section is empty.
Functions ¶
func GetCustomSections ¶
func StripSchematicsPrefix ¶
func ValidatePreamble ¶
func WithCustomSectionCMD ¶
func WithCustomSectionData ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.