- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 25 for MarshalJSON (0.06 seconds)
-
logger/sql_test.go
"github.com/jinzhu/now" "gorm.io/gorm/logger" ) type JSON json.RawMessage func (j JSON) Value() (driver.Value, error) { if len(j) == 0 { return nil, nil } return json.RawMessage(j).MarshalJSON() } type ExampleStruct struct { Name string Val string } func (s ExampleStruct) Value() (driver.Value, error) { return json.Marshal(s) } func format(v []byte, escaper string) string {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Mar 21 08:00:02 GMT 2024 - 8.4K bytes - Click Count (0) -
internal/kms/secret-key.go
// ciphertext. // // UnmarshalJSON provides backward-compatible unmarsahaling // of existing ciphertext. In the past, ciphertexts were // JSON-encoded. Now, ciphertexts are binary-encoded. // Therefore, there is no MarshalJSON implementation. func (c *ciphertext) UnmarshalJSON(text []byte) error { const ( IVSize = 16 NonceSize = 12 AES256GCM = "AES-256-GCM-HMAC-SHA-256" CHACHA20POLY1305 = "ChaCha20Poly1305"
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Apr 21 16:23:51 GMT 2025 - 8.4K bytes - Click Count (0) -
internal/s3select/sql/value.go
// used. type Value struct { value any } // Missing is used to indicate a non-existing value. type Missing struct{} // MarshalJSON provides json marshaling of values. func (v Value) MarshalJSON() ([]byte, error) { if b, ok := v.ToBytes(); ok { return b, nil } return json.Marshal(v.value) } // GetTypeString returns a string representation for vTypeCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 20.4K bytes - Click Count (0) -
api/go1.8.txt
pkg debug/pe, type Section struct, Relocs []Reloc pkg debug/pe, type StringTable []uint8 pkg encoding/base64, method (Encoding) Strict() *Encoding pkg encoding/json, method (RawMessage) MarshalJSON() ([]uint8, error) pkg encoding/json, type UnmarshalTypeError struct, Field string pkg encoding/json, type UnmarshalTypeError struct, Struct string pkg expvar, func Handler() http.Handler
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Dec 21 05:25:57 GMT 2016 - 16.3K bytes - Click Count (0) -
internal/s3select/simdj/record.go
if err != nil { return nil, err } return sql.FromBool(v), nil case simdjson.TypeNull: return sql.FromNull(), nil case simdjson.TypeObject, simdjson.TypeArray: b, err := iter.MarshalJSON() return sql.FromBytes(b), err } return nil, fmt.Errorf("iterToValue: unknown JSON type: %s", iter.Type().String()) } // Reset the record. func (r *Record) Reset() { r.object = simdjson.Object{} }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.4K bytes - Click Count (0) -
api/go1.21.txt
pkg log/slog, method (*JSONHandler) WithGroup(string) Handler #56345 pkg log/slog, method (Kind) String() string #56345 pkg log/slog, method (Level) Level() Level #56345 pkg log/slog, method (Level) MarshalJSON() ([]uint8, error) #56345 pkg log/slog, method (Level) MarshalText() ([]uint8, error) #56345 pkg log/slog, method (Level) String() string #56345 pkg log/slog, method (*Level) UnmarshalJSON([]uint8) error #56345
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Aug 07 09:39:17 GMT 2023 - 25.6K bytes - Click Count (0) -
internal/config/bool-flag_test.go
} } } // Test BoolFlag.MarshalJSON() func TestBoolFlagMarshalJSON(t *testing.T) { var bf BoolFlag testCases := []struct { flag BoolFlag expectedResult string }{ {bf, `"off"`}, {BoolFlag(true), `"on"`}, {BoolFlag(false), `"off"`}, } for _, testCase := range testCases { data, _ := testCase.flag.MarshalJSON() if testCase.expectedResult != string(data) {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 3.5K bytes - Click Count (0) -
api/except.txt
pkg crypto/tls, type ConnectionState struct, TLSUnique //deprecated pkg debug/elf, const R_PPC64_SECTOFF_LO_DS = 61 pkg encoding/json, method (*RawMessage) MarshalJSON() ([]uint8, error)
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jan 22 21:16:03 GMT 2026 - 34.8K bytes - Click Count (0) -
docs/debugging/xl-meta/main.go
var header xlMetaV2VersionHeaderV2 if _, err := header.UnmarshalMsg(hdr, headerVer); err != nil { return err } b, err := header.MarshalJSON() if err != nil { return err } var buf bytes.Buffer if _, err := msgp.UnmarshalAsJSON(&buf, meta); err != nil { return err } versions[idx] = version{
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 40.4K bytes - Click Count (0) -
internal/config/lambda/event/targetid_test.go
} for i, testCase := range testCases { data, err := testCase.tid.MarshalJSON() expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Mar 07 16:12:41 GMT 2023 - 3.5K bytes - Click Count (0)