- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 90 for marshaled (4.34 sec)
-
cmd/metacache-walk_gen.go
if err != nil { return } err = en.WriteString(z.DiskID) if err != nil { err = msgp.WrapError(err, "DiskID") return } return } // MarshalMsg implements msgp.Marshaler func (z *WalkDirOptions) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 8 // string "Bucket" o = append(o, 0x88, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 21 01:09:35 UTC 2023 - 7K bytes - Viewed (0) -
src/go/doc/comment/testdata/README.md
“html” for Printer.HTML, “markdown” for Printer.Markdown, and “text” for Printer.Text. The format can also be “dump” for a textual dump of the raw data structures. The text before the `-- input --` line, if present, is JSON to be unmarshaled to initialize a comment.Printer. For example, this test case sets the Printer's TextWidth field to 20: {"TextWidth": 20} -- input -- Package gob manages streams of gobs - binary values exchanged between an
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 1.3K bytes - Viewed (0) -
src/encoding/json/tagkey_test.go
{Name(""), unicodeTag{"Loukanikos"}, "Loukanikos", "Ελλάδα"}, } for _, tt := range tests { t.Run(tt.Name, func(t *testing.T) { b, err := Marshal(tt.raw) if err != nil { t.Fatalf("%s: Marshal error: %v", tt.Where, err) } var f any err = Unmarshal(b, &f) if err != nil { t.Fatalf("%s: Unmarshal error: %v", tt.Where, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 16:00:37 UTC 2023 - 2.9K bytes - Viewed (0) -
src/log/slog/json_handler.go
case KindFloat64: // json.Marshal is funny about floats; it doesn't // always match strconv.AppendFloat. So just call it. // That's expensive, but floats are rare. if err := appendJSONMarshal(s.buf, v.Float64()); err != nil { return err } case KindBool: *s.buf = strconv.AppendBool(*s.buf, v.Bool()) case KindDuration: // Do what json.Marshal does.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 16:18:11 UTC 2023 - 8.1K bytes - Viewed (0) -
pkg/bootstrap/instance.go
return err } // Execute the template. return t.Execute(w, templateParams) } func toJSON(i any) string { if i == nil { return "{}" } ba, err := json.Marshal(i) if err != nil { log.Warnf("Unable to marshal %v: %v", i, err) return "{}" } return string(ba) } // GetEffectiveTemplatePath gets the template file that should be used for bootstrap
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 3.9K bytes - Viewed (0) -
src/internal/chacha8rand/chacha8.go
break } s.Refill() } } s.Init64(seed) } // Marshal marshals the state into a byte slice. // Marshal and Unmarshal are functions, not methods, // so that they will not be linked into the runtime // when it uses the State struct, since the runtime // does not need these. func Marshal(s *State) []byte { data := make([]byte, 6*8) copy(data, "chacha8:")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:47:29 UTC 2024 - 4.4K bytes - Viewed (0) -
common-protos/k8s.io/apimachinery/pkg/api/resource/generated.proto
// writing some sort of special handling code in the hopes that that will // cause implementors to also use a fixed point implementation. // // +protobuf=true // +protobuf.embed=string // +protobuf.options.marshal=false // +protobuf.options.(gogoproto.goproto_stringer)=false // +k8s:deepcopy-gen=true // +k8s:openapi-gen=true message Quantity { optional string string = 1; }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 3.9K bytes - Viewed (0) -
cmd/storage-rest-common_gen.go
return } } else { err = z.Cache.EncodeMsg(en) if err != nil { err = msgp.WrapError(err, "Cache") return } } return } // MarshalMsg implements msgp.Marshaler func (z *nsScannerOptions) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 3 // string "id" o = append(o, 0x83, 0xa2, 0x69, 0x64)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 21 01:09:35 UTC 2023 - 7.9K bytes - Viewed (0) -
pkg/bootstrap/config_test.go
if err != nil { t.Fatalf("failed to marshal: %v", err) } // nolint: lll want := `{"id":"test","cluster":"cluster","metadata":{"A":1,"B":{"b":1},"OWNER":"real-owner","PROXY_CONFIG":{"serviceCluster":"cluster"},"UNKNOWN":"new-field"}}` test.JSONEquals(t, want, string(b)) } node2 := ConvertXDSNodeToNode(out) { got, err := json.Marshal(node2) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 9.1K bytes - Viewed (0) -
cmd/kubeadm/app/phases/kubelet/config.go
if !ok { return errors.New("no kubelet component config found") } if err := kubeletCfg.Mutate(); err != nil { return err } kubeletBytes, err := kubeletCfg.Marshal() if err != nil { return err } // Apply patches to the KubeletConfiguration if len(patchesDir) != 0 { kubeletBytes, err = applyKubeletConfigPatches(kubeletBytes, patchesDir, output) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 02 12:34:30 UTC 2024 - 5.9K bytes - Viewed (0)