This makes wazero.CompiledCode an interface instead of a struct to prevent it from being used incorrectly. For example, even though the fields are not exported, someone can mistakenly instantiate this when it is a struct, and in doing so violate internal assumptions. Signed-off-by: Adrian Cole <adrian@tetrate.io>
12 KiB
12 KiB