mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 20:22:24 -05:00
[chore]: Bump github.com/gin-contrib/sessions from 0.0.5 to 1.0.0 (#2782)
This commit is contained in:
parent
a24936040c
commit
29031d1e27
93 changed files with 2888 additions and 969 deletions
7
vendor/go.mongodb.org/mongo-driver/bson/raw_element.go
generated
vendored
7
vendor/go.mongodb.org/mongo-driver/bson/raw_element.go
generated
vendored
|
|
@ -10,10 +10,7 @@ import (
|
|||
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
|
||||
)
|
||||
|
||||
// RawElement represents a BSON element in byte form. This type provides a simple way to
|
||||
// transform a slice of bytes into a BSON element and extract information from it.
|
||||
//
|
||||
// RawElement is a thin wrapper around a bsoncore.Element.
|
||||
// RawElement is a raw encoded BSON document or array element.
|
||||
type RawElement []byte
|
||||
|
||||
// Key returns the key for this element. If the element is not valid, this method returns an empty
|
||||
|
|
@ -36,7 +33,7 @@ func (re RawElement) ValueErr() (RawValue, error) {
|
|||
// Validate ensures re is a valid BSON element.
|
||||
func (re RawElement) Validate() error { return bsoncore.Element(re).Validate() }
|
||||
|
||||
// String implements the fmt.Stringer interface. The output will be in extended JSON format.
|
||||
// String returns the BSON element encoded as Extended JSON.
|
||||
func (re RawElement) String() string {
|
||||
doc := bsoncore.BuildDocument(nil, re)
|
||||
j, err := MarshalExtJSON(Raw(doc), true, false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue