summaryrefslogtreecommitdiff
path: root/vendor/github.com/ncruces/go-sqlite3/embed/init.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2025-01-14 18:30:55 +0000
committerLibravatar GitHub <noreply@github.com>2025-01-14 18:30:55 +0000
commit81b66ad7e324dda72abc293433ecdaf4cf55c3a6 (patch)
tree7c2e1133ee2e5c6111d17be4937368f58115afe4 /vendor/github.com/ncruces/go-sqlite3/embed/init.go
parentbump uptrace/bun dependencies from 1.2.6 to 1.2.8 (#3645) (diff)
downloadgotosocial-81b66ad7e324dda72abc293433ecdaf4cf55c3a6.tar.xz
update ncruces/go-sqlite3 v0.21.3 -> v0.22.0, gruf/go-ffmpreg v0.6.4 -> v0.6.5 (#3646)
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/embed/init.go')
-rw-r--r--vendor/github.com/ncruces/go-sqlite3/embed/init.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/embed/init.go b/vendor/github.com/ncruces/go-sqlite3/embed/init.go
index da527abd0..5ffd69516 100644
--- a/vendor/github.com/ncruces/go-sqlite3/embed/init.go
+++ b/vendor/github.com/ncruces/go-sqlite3/embed/init.go
@@ -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))
}