- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 290 for marshaled (0.14 sec)
-
pilot/pkg/config/kube/crdclient/client.go
// Istio store interface, we need to take dynamic inputs. Using the dynamic informers results in poor // performance, as the cache will store unstructured objects which need to be marshaled on each Get/List call. // Using istio/client-go directly will cache objects marshaled, allowing us to have cheap Get/List calls, // at the expense of some code gen. package crdclient import ( "fmt" "sync" "time"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 00:12:28 UTC 2024 - 13.7K bytes - Viewed (0) -
pkg/apis/core/v1/defaults_test.go
} else { if visit.path != "" { marshaled, _ := json.Marshal(defaultedV.Interface()) defaults[visit.path] = string(marshaled) } toVisit = append(toVisit, testPath{path: visit.path, value: visit.value.Elem()}) } case isPrimitive(visit.value.Kind()): if !reflect.DeepEqual(defaultedV.Interface(), zeroV.Interface()) { marshaled, _ := json.Marshal(defaultedV.Interface())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 84.4K bytes - Viewed (0) -
src/encoding/xml/marshal.go
start.Name.Local = typ.Name() } else { // Must be a pointer to a named type, // since it has the Marshaler methods. start.Name.Local = typ.Elem().Name() } return start } // marshalInterface marshals a Marshaler interface value. func (p *printer) marshalInterface(val Marshaler, start StartElement) error { // Push a marker onto the tag stack so that MarshalXML
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 31.2K bytes - Viewed (0) -
pkg/model/proxy.go
return nil } // ProxyConfig can only be marshaled using (gogo) jsonpb. However, the rest of node meta is not a proto // To allow marshaling, we need to define a custom type that calls out to the gogo marshaller type NodeMetaProxyConfig meshconfig.ProxyConfig func (s *NodeMetaProxyConfig) MarshalJSON() ([]byte, error) { pc := (*meshconfig.ProxyConfig)(s) return protomarshal.Marshal(pc) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 17:18:17 UTC 2024 - 18.7K bytes - Viewed (0) -
src/html/template/doc.go
in the escaped template <script>var pair = {{.}};</script> then the template output is <script>var pair = {"A": "foo", "B": "bar"};</script> See package json to understand how non-string content is marshaled for embedding in JavaScript contexts. # Typed Strings By default, this package assumes that all pipelines produce a plain text string. It adds escaping pipeline stages necessary to correctly and safely embed that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:04:29 UTC 2024 - 7.9K 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 { t.Errorf("regexp %#q failed to unmarshal: %s", re, err) continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 25.8K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/profile.go
p.encodeMu.Lock() p.preEncode() b := marshal(p) p.encodeMu.Unlock() return b } // Write writes the profile as a gzip-compressed marshaled protobuf. func (p *Profile) Write(w io.Writer) error { zw := gzip.NewWriter(w) defer zw.Close() _, err := zw.Write(serialize(p)) return err } // WriteUncompressed writes the profile as a marshaled protobuf.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0) -
src/crypto/x509/x509.go
// // The PolicyIdentifier and Policies fields are both used to marshal certificate // policy OIDs. By default, only the PolicyIdentifier is marshaled, but if the // GODEBUG setting "x509usepolicies" has the value "1", the Policies field will // be marshaled instead of the PolicyIdentifier field. The Policies field can // be used to marshal policy OIDs which have components that are larger than 31 // bits.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:20:15 UTC 2024 - 82K bytes - Viewed (0) -
src/internal/profile/profile.go
} if err := p.postDecode(); err != nil { return nil, err } return p, nil } // Write writes the profile as a gzip-compressed marshaled protobuf. func (p *Profile) Write(w io.Writer) error { p.preEncode() b := marshal(p) zw := gzip.NewWriter(w) defer zw.Close() _, err := zw.Write(b) return err } // CheckValid tests whether the profile is valid. Checks include, but are
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 17:57:40 UTC 2024 - 13.4K bytes - Viewed (0) -
src/encoding/json/encode.go
"unicode/utf8" _ "unsafe" // for linkname ) // Marshal returns the JSON encoding of v. // // Marshal traverses the value v recursively. // If an encountered value implements [Marshaler] // and is not a nil pointer, Marshal calls [Marshaler.MarshalJSON] // to produce JSON. If no [Marshaler.MarshalJSON] method is present but the // value implements [encoding.TextMarshaler] instead, Marshal calls
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 36.2K bytes - Viewed (0)