- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 56 for MarshalNext (3.86 sec)
-
src/log/slog/logger_test.go
if got != want { t.Errorf("got %d allocs, want %d", got, want) } } // panicTextAndJsonMarshaler is a type that panics in MarshalText and MarshalJSON. type panicTextAndJsonMarshaler struct { msg any } func (p panicTextAndJsonMarshaler) MarshalText() ([]byte, error) { panic(p.msg) } func (p panicTextAndJsonMarshaler) MarshalJSON() ([]byte, error) { panic(p.msg) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 10 21:25:30 UTC 2023 - 19.5K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/time.gox
func (t <type 3>) MarshalJSON () (? <type 27 [] <type -20>>, ? <type -19>); func (t <type 23>) UnmarshalJSON (data <type 28 [] <type -20>>) <type -19>; func (t <type 3>) MarshalText () (? <type 29 [] <type -20>>, ? <type -19>); func (t <type 23>) UnmarshalText (data <type 30 [] <type -20>>) <type -19>; func (t <type 3>) Truncate (d <type 1>) <type 3>; func (t <type 3>) Round (d <type 1>) <type 3>; >>;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 30 21:33:51 UTC 2021 - 7.3K bytes - Viewed (0) -
internal/crypto/sse-kms.go
metadata[MetaIV] = base64.StdEncoding.EncodeToString(sealedKey.IV[:]) metadata[MetaSealedKeyKMS] = base64.StdEncoding.EncodeToString(sealedKey.Key[:]) if len(ctx) > 0 { b, _ := ctx.MarshalText() metadata[MetaContext] = base64.StdEncoding.EncodeToString(b) } if len(kmsKey) > 0 && keyID != "" { // We use a KMS -> Store key ID and sealed KMS data key. metadata[MetaKeyID] = keyID
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 8.5K bytes - Viewed (0) -
api/go1.6.txt
pkg image/color, type NYCbCrA struct pkg image/color, type NYCbCrA struct, A uint8 pkg image/color, type NYCbCrA struct, embedded YCbCr pkg image/color, var NYCbCrAModel Model pkg math/big, method (*Float) MarshalText() ([]uint8, error) pkg math/big, method (*Float) UnmarshalText([]uint8) error pkg math/big, method (*Int) Append([]uint8, int) []uint8 pkg math/big, method (*Int) Text(int) string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 13 23:40:13 UTC 2016 - 12.9K bytes - Viewed (0) -
src/cmd/internal/test2json/test2json.go
// It implements encoding.TextMarshaler, which returns its text form as a []byte, // and then json encodes that text form as a string (which was our goal). type textBytes []byte func (b textBytes) MarshalText() ([]byte, error) { return b, nil } // A Converter holds the state of a test-to-JSON conversion. // It implements io.WriteCloser; the caller writes test output in, // and the converter writes JSON output to w.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 17:33:07 UTC 2022 - 14.5K bytes - Viewed (0) -
src/encoding/gob/encode.go
case xGob: data, err = v.Interface().(GobEncoder).GobEncode() case xBinary: data, err = v.Interface().(encoding.BinaryMarshaler).MarshalBinary() case xText: data, err = v.Interface().(encoding.TextMarshaler).MarshalText() } if err != nil { error_(err) } state := enc.newEncoderState(b) state.fieldnum = -1 state.encodeUint(uint64(len(data))) state.b.Write(data) enc.freeEncoderState(state) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 02:00:26 UTC 2024 - 19K bytes - Viewed (0) -
src/regexp/regexp.go
strings = append(strings, s[beg:end]) } beg = match[1] } if end != len(s) { strings = append(strings, s[beg:]) } return strings } // MarshalText implements [encoding.TextMarshaler]. The output // matches that of calling the [Regexp.String] method. // // Note that the output is lossy in some cases: This method does not indicate
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:50:01 UTC 2024 - 38.5K bytes - Viewed (0) -
src/encoding/gob/type.go
ut.externalEnc, ut.encIndir = xGob, indir } else if ok, indir := implementsInterface(ut.user, binaryMarshalerInterfaceType); ok { ut.externalEnc, ut.encIndir = xBinary, indir } // NOTE(rsc): Would like to allow MarshalText here, but results in incompatibility // with older encodings for net.IP. See golang.org/issue/6760. // } else if ok, indir := implementsInterface(ut.user, textMarshalerInterfaceType); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 02:00:26 UTC 2024 - 27.2K bytes - Viewed (0) -
src/regexp/all_test.go
} } } func TestUnmarshalText(t *testing.T) { unmarshaled := new(Regexp) for i := range goodRe { re := compileTest(t, goodRe[i], "") marshaled, err := re.MarshalText() if err != nil { t.Errorf("regexp %#q failed to marshal: %s", re, err) continue } if err := unmarshaled.UnmarshalText(marshaled); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 25.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go
TaggedA int `json:"A"` } func (testEncodableTagMatchesUntaggedName) DeepCopyObject() runtime.Object { panic("unimplemented") } type staticTextMarshaler int func (staticTextMarshaler) MarshalText() ([]byte, error) { return []byte("static"), nil } type testEncodableMap[K comparable] map[K]interface{} func (testEncodableMap[K]) GetObjectKind() schema.ObjectKind { panic("unimplemented") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 04 15:55:02 UTC 2024 - 40K bytes - Viewed (0)