Prevent modification.

This commit is contained in:
Nuno Cruces
2025-01-10 12:38:11 +00:00
parent a79ee4c2c6
commit aef7f051a8
2 changed files with 6 additions and 4 deletions

View File

@@ -8,13 +8,14 @@ package embed
import (
_ "embed"
"unsafe"
"github.com/ncruces/go-sqlite3"
)
//go:embed sqlite3.wasm
var binary []byte
var binary string
func init() {
sqlite3.Binary = binary
sqlite3.Binary = unsafe.Slice(unsafe.StringData(binary), len(binary))
}