- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 63 for marshalling (0.08 sec)
-
doc/next/6-stdlib/99-minor/encoding/json/45669.md
When marshaling, a struct field with the new `omitzero` option in the struct field tag will be omitted if its value is zero. If the field type has an `IsZero() bool` method, that will be used to determine whether the value is zero. Otherwise, the value is zero if it is [the zero value for its type](/ref/spec#The_zero_value). If both `omitempty` and `omitzero` are specified, the field will be omitted if the
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 02 14:22:27 UTC 2024 - 452 bytes - Viewed (0) -
internal/bucket/object/lock/lock_test.go
if actualStatus != tt.expectedStatus { t.Errorf("Expected legal hold status %s, got %s", tt.expectedStatus, actualStatus) } } } // TestUnmarshalDefaultRetention checks if default retention // marshaling and unmarshalling work as expected func TestUnmarshalDefaultRetention(t *testing.T) { days := uint64(4) years := uint64(1) zerodays := uint64(0) invalidDays := uint64(maximumRetentionDays + 1) tests := []struct {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 29 01:20:27 UTC 2024 - 17.1K bytes - Viewed (0) -
cni/pkg/plugin/plugin_cni_conformance.go
// limitations under the License. package plugin import ( "testing" "github.com/containernetworking/cni/pkg/types" ) // Validate k8sArgs struct works for unmarshalling kubelet args // This is important for CNI plugin conformance func TestLoadArgs(t *testing.T) { kubeletArgs := "IgnoreUnknown=1;K8S_POD_NAMESPACE=istio-system;" + "K8S_POD_NAME=istio-sidecar-injector-8489cf78fb-48pvg;" +
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed May 29 21:50:09 UTC 2024 - 1.5K bytes - Viewed (0) -
cmd/xl-storage-format_test.go
func compareXLMetaV1(t *testing.T, unMarshalXLMeta, jsoniterXLMeta xlMetaV1Object) { // Start comparing the fields of xlMetaV1Object obtained from jsoniter parsing with one parsed using json unmarshalling. if unMarshalXLMeta.Version != jsoniterXLMeta.Version { t.Errorf("Expected the Version to be \"%s\", but got \"%s\".", unMarshalXLMeta.Version, jsoniterXLMeta.Version) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 17.6K bytes - Viewed (0) -
internal/bucket/lifecycle/expiration.go
} // ExpireDeleteMarker represents value of ExpiredObjectDeleteMarker field in Expiration XML element. type ExpireDeleteMarker struct { Boolean } // Boolean signifies a boolean XML struct with custom marshaling type Boolean struct { val bool set bool Unused struct{} // Needed for GOB compatibility } // Expiration - expiration actions for a rule in lifecycle configuration. type Expiration struct {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Feb 21 20:28:34 UTC 2024 - 6.6K 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: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 3.9K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/configdump.go
// TODO(fisherxu): migrate this to jsonpb when issue fixed in golang // Issue to track -> https://github.com/golang/protobuf/issues/632 err := json.Unmarshal(b, rawDump) if err != nil { return fmt.Errorf("error unmarshalling config dump response from ztunnel: %v", err) } // ensure that data gets unmarshalled into the right data type if err := unmarshalListOrMap(rawDump.Services, &zDump.Services); err != nil { return err }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 06 20:18:34 UTC 2024 - 3.9K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/configdump.go
} // Prime loads the config dump into the writer ready for printing func (c *ConfigWriter) Prime(b []byte) error { w := &configdump.Wrapper{} err := w.UnmarshalJSON(b) if err != nil { return fmt.Errorf("error unmarshalling config dump response from Envoy: %v", err) } c.configDump = w return nil } // PrintBootstrapDump prints just the bootstrap config dump to the ConfigWriter stdout
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Feb 29 20:46:41 UTC 2024 - 7.4K bytes - Viewed (0) -
istioctl/pkg/tag/tag.go
out, err := json.MarshalIndent(res, "", "\t") if err != nil { return fmt.Errorf("error while marshaling to JSON: %v", err) } if outformat == util.YamlFormat { if out, err = yaml.JSONToYAML(out); err != nil { return fmt.Errorf("error while marshaling to YAML: %v", err) } } fmt.Fprintln(w, string(out)) return nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Jul 22 15:40:30 UTC 2024 - 16.5K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/clusters/clusters.go
// Prime loads the clusters output into the writer ready for printing func (c *ConfigWriter) Prime(b []byte) error { cd := clusters.Wrapper{} err := json.Unmarshal(b, &cd) if err != nil { return fmt.Errorf("error unmarshalling config dump response from Envoy: %v", err) } c.clusters = &cd return nil } func retrieveEndpointAddress(host *admin.HostStatus) string { addr := host.Address.GetSocketAddress() if addr != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Nov 03 08:41:32 UTC 2022 - 5.8K bytes - Viewed (0)