- Sort Score
- Result 10 results
- Languages All
Results 11 - 18 of 18 for UnmarshalJSON (0.07 sec)
-
internal/jwt/parser.go
type StandardClaims struct { AccessKey string `json:"accessKey,omitempty"` jwtgo.StandardClaims } // UnmarshalJSON provides custom JSON unmarshal. // This is mainly implemented for speed. func (c *StandardClaims) UnmarshalJSON(b []byte) (err error) { return jsonparser.ObjectEach(b, func(key []byte, value []byte, dataType jsonparser.ValueType, _ int) error { if len(key) == 0 {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 14.1K bytes - Viewed (0) -
soft_delete.go
return nil, nil } return n.Time, nil } func (n DeletedAt) MarshalJSON() ([]byte, error) { if n.Valid { return json.Marshal(n.Time) } return json.Marshal(nil) } func (n *DeletedAt) UnmarshalJSON(b []byte) error { if string(b) == "null" { n.Valid = false return nil } err := json.Unmarshal(b, &n.Time) if err == nil { n.Valid = true } return err }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Wed Feb 01 06:40:55 UTC 2023 - 4.5K bytes - Viewed (1) -
internal/event/targetid_test.go
{[]byte(`":"`), &TargetID{}, false}, {[]byte(`"1:webhook"`), &TargetID{"1", "webhook"}, false}, } for i, testCase := range testCases { targetID := &TargetID{} err := targetID.UnmarshalJSON(testCase.data) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0) -
internal/config/lambda/event/targetid_test.go
{[]byte(`":"`), &TargetID{}, false}, {[]byte(`"1:webhook"`), &TargetID{"1", "webhook"}, false}, } for i, testCase := range testCases { targetID := &TargetID{} err := targetID.UnmarshalJSON(testCase.data) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 3.5K bytes - Viewed (0) -
internal/config/storageclass/storage-class.go
RRS StorageClass `json:"rrs"` Optimize string `json:"optimize"` inlineBlock int64 initialized bool } // UnmarshalJSON - Validate SS and RRS parity when unmarshalling JSON. func (sCfg *Config) UnmarshalJSON(data []byte) error { type Alias Config aux := &struct { *Alias }{ Alias: (*Alias)(sCfg), } return json.Unmarshal(data, &aux) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12.3K bytes - Viewed (0) -
api/go1.21.txt
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 pkg log/slog, method (*Level) UnmarshalText([]uint8) error #56345 pkg log/slog, method (*LevelVar) Level() Level #56345 pkg log/slog, method (*LevelVar) MarshalText() ([]uint8, error) #56345
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Mon Aug 07 09:39:17 UTC 2023 - 25.6K bytes - Viewed (0) -
api/go1.txt
pkg encoding/json, type UnmarshalTypeError struct, Type reflect.Type pkg encoding/json, type UnmarshalTypeError struct, Value string pkg encoding/json, type Unmarshaler interface { UnmarshalJSON } pkg encoding/json, type Unmarshaler interface, UnmarshalJSON([]uint8) error pkg encoding/json, type UnsupportedTypeError struct pkg encoding/json, type UnsupportedTypeError struct, Type reflect.TypeRegistered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0) -
api/go1.1.txt
pkg math/big, const MaxBase = 36 pkg math/big, method (*Int) MarshalJSON() ([]uint8, error) pkg math/big, method (*Int) SetUint64(uint64) *Int pkg math/big, method (*Int) Uint64() uint64 pkg math/big, method (*Int) UnmarshalJSON([]uint8) error pkg math/big, method (*Rat) Float64() (float64, bool) pkg math/big, method (*Rat) SetFloat64(float64) *Rat pkg mime/multipart, method (*Writer) SetBoundary(string) error pkg net, const FlagBroadcast = 2
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Mar 31 20:37:15 UTC 2022 - 2.6M bytes - Viewed (0)