summaryrefslogtreecommitdiff
path: root/vendor/github.com/minio/minio-go/v7/internal/json/json_goccy.go
diff options
context:
space:
mode:
authorLibravatar kim <grufwub@gmail.com>2025-05-22 16:27:55 +0200
committerLibravatar kim <gruf@noreply.codeberg.org>2025-05-22 16:27:55 +0200
commitb6ff55662e0281c0d6e111f9307625ef695df2fa (patch)
tree5f7761efa0b51a7a7d56f96fce3681c8e9b66fe9 /vendor/github.com/minio/minio-go/v7/internal/json/json_goccy.go
parent[chore/woodpecker] don't make `test` depend on `lint` (#4189) (diff)
downloadgotosocial-b6ff55662e0281c0d6e111f9307625ef695df2fa.tar.xz
[chore] update dependencies (#4188)
Update dependencies: - github.com/gin-gonic/gin v1.10.0 -> v1.10.1 - github.com/gin-contrib/sessions v1.10.3 -> v1.10.4 - github.com/jackc/pgx/v5 v5.7.4 -> v5.7.5 - github.com/minio/minio-go/v7 v7.0.91 -> v7.0.92 - github.com/pquerna/otp v1.4.0 -> v1.5.0 - github.com/tdewolff/minify/v2 v2.23.5 -> v2.23.8 - github.com/yuin/goldmark v1.7.11 -> v1.7.12 - go.opentelemetry.io/otel{,/*} v1.35.0 -> v1.36.0 - modernc.org/sqlite v1.37.0 -> v1.37.1 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4188 Reviewed-by: Daenney <daenney@noreply.codeberg.org> Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'vendor/github.com/minio/minio-go/v7/internal/json/json_goccy.go')
-rw-r--r--vendor/github.com/minio/minio-go/v7/internal/json/json_goccy.go49
1 files changed, 49 insertions, 0 deletions
diff --git a/vendor/github.com/minio/minio-go/v7/internal/json/json_goccy.go b/vendor/github.com/minio/minio-go/v7/internal/json/json_goccy.go
new file mode 100644
index 000000000..8fc33849f
--- /dev/null
+++ b/vendor/github.com/minio/minio-go/v7/internal/json/json_goccy.go
@@ -0,0 +1,49 @@
+//go:build !stdlibjson
+
+/*
+ * MinIO Go Library for Amazon S3 Compatible Cloud Storage
+ * Copyright 2025 MinIO, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package json
+
+import "github.com/goccy/go-json"
+
+// This file defines the JSON functions used internally and forwards them
+// to goccy/go-json. Alternatively, the standard library can be used by setting
+// the build tag stdlibjson. This can be useful for testing purposes or if
+// goccy/go-json causes issues.
+//
+// This file does not contain all definitions from goccy/go-json; if needed, more
+// can be added, but keep in mind that json_stdlib.go will also need to be
+// updated.
+
+var (
+ // Unmarshal is a wrapper around goccy/go-json Unmarshal function.
+ Unmarshal = json.Unmarshal
+ // Marshal is a wrapper around goccy/go-json Marshal function.
+ Marshal = json.Marshal
+ // NewEncoder is a wrapper around goccy/go-json NewEncoder function.
+ NewEncoder = json.NewEncoder
+ // NewDecoder is a wrapper around goccy/go-json NewDecoder function.
+ NewDecoder = json.NewDecoder
+)
+
+type (
+ // Encoder is an alias for goccy/go-json Encoder.
+ Encoder = json.Encoder
+ // Decoder is an alias for goccy/go-json Decoder.
+ Decoder = json.Decoder
+)