- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 319 for unmarshaling (0.27 sec)
-
src/math/big/floatmarsh_test.go
continue } b, err := json.Marshal(&tx) if err != nil { t.Errorf("marshaling of %v (prec = %d) failed: %v", &tx, prec, err) continue } var rx Float rx.SetPrec(prec) if err := json.Unmarshal(b, &rx); err != nil { t.Errorf("unmarshaling of %v (prec = %d) failed: %v", &tx, prec, err) continue } if rx.Cmp(&tx) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 23 18:18:05 UTC 2023 - 4.5K bytes - Viewed (0) -
common-protos/k8s.io/apimachinery/pkg/api/resource/generated.proto
// Package-wide variables from generator "generated". option go_package = "k8s.io/apimachinery/pkg/api/resource"; // Quantity is a fixed-point representation of a number. // It provides convenient marshaling/unmarshaling in JSON and YAML, // in addition to String() and AsInt64() accessors. // // The serialization format is: // // ``` // <quantity> ::= <signedNumber><suffix> //
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce.go
// cannot be successfully decoded to the corresponding ObjectMeta field. // This only applies to fields that are recognized as part of the schema, // but of an invalid type (i.e. cause an error when unmarshaling, rather // than being dropped or causing a strictErr). DropMalformedFields bool // ReturnUnknownFieldPaths will return the paths to fields that are not // recognized as part of the schema. ReturnUnknownFieldPaths bool
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 18 14:55:12 UTC 2022 - 5.4K bytes - Viewed (0) -
src/go/doc/comment/testdata_test.go
var pr Printer a, err := txtar.ParseFile(file) if err != nil { t.Fatal(err) } if len(a.Comment) > 0 { err := json.Unmarshal(a.Comment, &pr) if err != nil { t.Fatalf("unmarshaling top json: %v", err) } } if len(a.Files) < 1 || a.Files[0].Name != "input" { t.Fatalf("first file is not %q", "input") } d := p.Parse(string(stripDollars(a.Files[0].Data)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 4.5K bytes - Viewed (0) -
src/encoding/xml/xml_test.go
} if len(c.C.XMLName.Space) != 0 { t.Errorf("overidding with empty namespace: after marshaling & unmarshaling, got %s, want empty\n", a.C.XMLName.Space) } } func TestIssue20396(t *testing.T) { var attrError = UnmarshalError("XML syntax error on line 1: expected attribute name in element")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 36.9K bytes - Viewed (0) -
pkg/api/testing/unstructured_test.go
if err != nil { t.Errorf("Error when marshaling object: %v", err) return } unstr := make(map[string]interface{}) err = json.Unmarshal(data, &unstr) if err != nil { t.Errorf("Error when unmarshaling to unstructured: %v", err) return } data, err = json.Marshal(unstr) if err != nil { t.Errorf("Error when marshaling unstructured: %v", err) return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 16.9K bytes - Viewed (0) -
operator/pkg/name/name.go
PilotComponentName: "🧠", CNIComponentName: "🪢", ZtunnelComponentName: "🔒", IngressComponentName: "🛬", EgressComponentName: "🛫", } // ComponentNamesConfig is used for unmarshaling legacy and addon naming data. type ComponentNamesConfig struct { DeprecatedComponentNames []string } var ( AllCoreComponentNames = []ComponentName{ IstioBaseComponentName, PilotComponentName,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 7.9K bytes - Viewed (0) -
operator/pkg/util/yaml_test.go
{ desc: "no-diff", diff1: `foo: bar`, diff2: `foo: bar`, expect: ``, }, { desc: "invalid-yaml", diff1: `Ij#**#f#`, diff2: `fm*##)n`, expect: "error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type map[string]interface {}", }, } for _, tt := range tests { t.Run(tt.desc, func(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 06 17:00:14 UTC 2024 - 6.7K bytes - Viewed (0) -
operator/pkg/patch/patch.go
2. Add new key:value to container name: n1 path: a.b.[name:n1] value: new_attr: v3 *NOTES* - Due to loss of string quoting during unmarshaling, keys and values should not be string quoted, even if they appear that way in the object being patched. - [key:value] treats ':' as a special separator character. Any ':' in the key or value string must be escaped as \:. */
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 10 15:35:03 UTC 2023 - 6.2K bytes - Viewed (0) -
pilot/pkg/xds/filters/filters.go
// EnvoyJwtFilterPayload is the struct field for the payload in dynamic metadata in Envoy JWT filter. EnvoyJwtFilterPayload = "payload" ) // Define static filters to be reused across the codebase. This avoids duplicate marshaling/unmarshaling // This should not be used for filters that will be mutated var ( RetryPreviousHosts = &route.RetryPolicy_RetryHostPredicate{ Name: "envoy.retry_host_predicates.previous_hosts",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 09 09:24:25 UTC 2024 - 15.5K bytes - Viewed (0)