summaryrefslogtreecommitdiff
path: root/vendor/github.com/buger/jsonparser/bytes_safe.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2025-01-14 14:23:28 +0000
committerLibravatar GitHub <noreply@github.com>2025-01-14 14:23:28 +0000
commitb8ef9fc4bcccc6c024edaa8e9c91a6bf87f83dd9 (patch)
tree68eaf966c80237e18993e887c8583355f0943ca7 /vendor/github.com/buger/jsonparser/bytes_safe.go
parent[chore] better dns validation (#3644) (diff)
downloadgotosocial-b8ef9fc4bcccc6c024edaa8e9c91a6bf87f83dd9.tar.xz
bump uptrace/bun dependencies from 1.2.6 to 1.2.8 (#3645)
Diffstat (limited to 'vendor/github.com/buger/jsonparser/bytes_safe.go')
-rw-r--r--vendor/github.com/buger/jsonparser/bytes_safe.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/vendor/github.com/buger/jsonparser/bytes_safe.go b/vendor/github.com/buger/jsonparser/bytes_safe.go
deleted file mode 100644
index ff16a4a19..000000000
--- a/vendor/github.com/buger/jsonparser/bytes_safe.go
+++ /dev/null
@@ -1,25 +0,0 @@
-// +build appengine appenginevm
-
-package jsonparser
-
-import (
- "strconv"
-)
-
-// See fastbytes_unsafe.go for explanation on why *[]byte is used (signatures must be consistent with those in that file)
-
-func equalStr(b *[]byte, s string) bool {
- return string(*b) == s
-}
-
-func parseFloat(b *[]byte) (float64, error) {
- return strconv.ParseFloat(string(*b), 64)
-}
-
-func bytesToString(b *[]byte) string {
- return string(*b)
-}
-
-func StringToBytes(s string) []byte {
- return []byte(s)
-}