- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 804 for unmarshalV1 (0.21 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go
} } var strictJSONErrs []error if u, isUnstructured := into.(runtime.Unstructured); isUnstructured { // Unstructured is a custom unmarshaler that gets delegated // to, so in order to detect strict JSON errors we need // to unmarshal directly into the object. m := map[string]interface{}{} strictJSONErrs, err = kjson.UnmarshalStrict(data, &m) u.SetUnstructuredContent(m) } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 25 16:08:07 UTC 2022 - 12K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unmarshal/doc.go
// license that can be found in the LICENSE file. // The unmarshal package defines an Analyzer that checks for passing // non-pointer or non-interface types to unmarshal and decode functions. // // # Analyzer unmarshal // // unmarshal: report passing non-pointer or non-interface values to unmarshal // // The unmarshal analysis reports calls to functions such as json.Unmarshal // in which the argument type is not a pointer or an interface.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 571 bytes - Viewed (0) -
operator/pkg/tpath/tree.go
nv := make(map[string]any) if err := json.Unmarshal([]byte(vv.(string)), &nv); err == nil { // treat JSON as string return vv, false } if err := yaml2.Unmarshal([]byte(vv.(string)), &nv); err == nil { return nv, true } } } // looks like a literal or failed unmarshal, return original type. return vv, false }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 17.5K bytes - Viewed (0) -
src/encoding/json/encode_test.go
t.Fatalf("Marshal:\n\tgot: %s\n\twant: %s", got, want) } var back stringPointer switch err = Unmarshal(b, &back); { case err != nil: t.Fatalf("Unmarshal error: %v", err) case back.N == nil: t.Fatalf("Unmarshal: back.N = nil, want non-nil") case *back.N != 42: t.Fatalf("Unmarshal: *back.N = %d, want 42", *back.N) } } var encodeStringTests = []struct { in string out string }{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 29.4K bytes - Viewed (0) -
internal/s3select/json/args.go
} *args = ReaderArgs(parsedArgs) args.unmarshaled = true return nil } // WriterArgs - represents elements inside <OutputSerialization><JSON/> in request XML. type WriterArgs struct { RecordDelimiter string `xml:"RecordDelimiter"` unmarshaled bool } // IsEmpty - returns whether writer args is empty or not. func (args *WriterArgs) IsEmpty() bool { return !args.unmarshaled } // UnmarshalXML - decodes XML data.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 2.7K bytes - Viewed (0) -
src/go/doc/comment/testdata/linklist.txt
Did you know? - [encoding/json.Marshal] is a doc link. So is [encoding/json.Unmarshal]. -- text -- Did you know? - encoding/json.Marshal is a doc link. So is encoding/json.Unmarshal. -- markdown -- Did you know? - [encoding/json.Marshal](https://pkg.go.dev/encoding/json#Marshal) is a doc link. So is [encoding/json.Unmarshal](https://pkg.go.dev/encoding/json#Unmarshal). -- html -- <p>Did you know? <ul>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 30 21:57:02 UTC 2022 - 657 bytes - Viewed (0) -
pkg/istio-agent/xds_proxy_delta_test.go
} gotEcdsConfig := &core.TypedExtensionConfig{} if err := gotResp.Resources[0].Resource.UnmarshalTo(gotEcdsConfig); err != nil { t.Fatalf("wasm config conversion output %v failed to unmarshal", gotResp.Resources[0]) } assert.Equal(t, gotResp.Resources[0].Name, "extension-config") wasm := &wasm.Wasm{ Config: &wasmv3.PluginConfig{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 04:48:02 UTC 2024 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/group_version_test.go
// test golang lib's JSON codec if err := gojson.Unmarshal([]byte(c.input), &result); err != nil { t.Errorf("JSON codec failed to unmarshal input '%v': %v", c.input, err) } if !reflect.DeepEqual(result.GV, c.expect) { t.Errorf("JSON codec failed to unmarshal input '%s': expected %+v, got %+v", c.input, c.expect, result.GV) } // test the utiljson codec if err := utiljson.Unmarshal(c.input, &result); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 20 16:49:23 UTC 2021 - 2.2K bytes - Viewed (0) -
internal/s3select/parquet/args.go
import "encoding/xml" // ReaderArgs - represents elements inside <InputSerialization><Parquet/> in request XML. type ReaderArgs struct { unmarshaled bool } // IsEmpty - returns whether reader args is empty or not. func (args *ReaderArgs) IsEmpty() bool { return !args.unmarshaled } // UnmarshalXML - decodes XML data. func (args *ReaderArgs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.4K bytes - Viewed (0) -
src/encoding/json/bench_test.go
var f float64 for pb.Next() { if err := Unmarshal(data, &f); err != nil { b.Fatalf("Unmarshal error: %v", err) } } }) } func BenchmarkUnmarshalInt64(b *testing.B) { b.ReportAllocs() data := []byte(`3`) b.RunParallel(func(pb *testing.PB) { var x int64 for pb.Next() { if err := Unmarshal(data, &x); err != nil { b.Fatalf("Unmarshal error: %v", err) } } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:00:17 UTC 2024 - 12.5K bytes - Viewed (0)