- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 83 for arshalers (0.22 sec)
-
test/typeparam/issue48185b.dir/a.go
Unmarshalers *arshalers[UnmarshalOptions1, Decoder1] } type Decoder1 struct { } func (a *arshalers[Options, Coder]) lookup(fnc func(Options, *Coder, addressableValue) error, t reflect.Type) func(Options, *Coder, addressableValue) error { return fnc } func UnmarshalFuncV2[T any](fn func(UnmarshalOptions1, *Decoder1, T) error) *arshalers[UnmarshalOptions1, Decoder1] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 07 20:37:05 UTC 2021 - 1K bytes - Viewed (0) -
src/math/big/intmarsh.go
return fmt.Errorf("math/big: cannot unmarshal %q into a *big.Int", text) } return nil } // The JSON marshalers are only here for API backward compatibility // (programs that explicitly look for these two methods). JSON works // fine with the TextMarshaler only. // MarshalJSON implements the [encoding/json.Marshaler] interface. func (x *Int) MarshalJSON() ([]byte, error) { if x == nil { return []byte("null"), nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 2.2K bytes - Viewed (0) -
test/typeparam/issue48185a.dir/p.go
// license that can be found in the LICENSE file. package p type MarshalOptions struct { Marshalers *Marshalers } type Encoder struct {} type Marshalers = marshalers[MarshalOptions, Encoder] type marshalers[Options, Coder any] struct{} func MarshalFuncV1[T any](fn func(T) ([]byte, error)) *Marshalers { return &Marshalers{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 07 17:38:14 UTC 2021 - 444 bytes - Viewed (0) -
src/html/template/js.go
// "<!--", "-->", "<![CDATA[", "]]>", or "</script" // in case custom marshalers produce output containing those. // Note: Do not use \x escaping to save bytes because it is not JSON compatible and this escaper // supports ld+json content-type. if len(b) == 0 { // In, `x=y/{{.}}*z` a json.Marshaler that produces "" should // not cause the output `x=y/*z`. return " null " }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 14.1K bytes - Viewed (0) -
test/typeparam/issue50437.dir/a.go
err = mo.MarshalNext(in) return nil, err } func (mo MarshalOptions) MarshalNext(in interface{}) error { a := new(arshaler) a.marshal = func(MarshalOptions) error { return nil } return a.marshal(mo) } type arshaler struct { marshal func(MarshalOptions) error } type typedArshalers[Options any] struct { m M }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 07 17:55:52 UTC 2022 - 935 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert.go
// Return unless we implement a custom query marshaler if !value.CanInterface() { return reflect.Value{}, false } marshaler, ok := value.Interface().(Marshaler) if !ok { if !isPointerKind(value.Kind()) && value.CanAddr() { marshaler, ok = value.Addr().Interface().(Marshaler) if !ok { return reflect.Value{}, false } } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/testing/cacheable_object.go
"k8s.io/apimachinery/pkg/runtime/schema" ) // nonCacheableTestObject implements json.Marshaler and proto.Marshaler interfaces // for mocking purpose. // +k8s:deepcopy-gen=false type noncacheableTestObject struct { gvk schema.GroupVersionKind } // MarshalJSON implements json.Marshaler interface. func (*noncacheableTestObject) MarshalJSON() ([]byte, error) { return []byte("\"json-result\""), nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 30 06:58:54 UTC 2019 - 6.1K bytes - Viewed (0) -
src/hash/example_test.go
input2 = "unaware of what he will find." ) first := sha256.New() first.Write([]byte(input1)) marshaler, ok := first.(encoding.BinaryMarshaler) if !ok { log.Fatal("first does not implement encoding.BinaryMarshaler") } state, err := marshaler.MarshalBinary() if err != nil { log.Fatal("unable to marshal hash:", err) } second := sha256.New()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 04 03:47:34 UTC 2017 - 1.2K bytes - Viewed (0) -
cmd/object-api-interface_gen.go
package cmd // Code generated by github.com/tinylib/msgp DO NOT EDIT. import ( "github.com/tinylib/msgp/msgp" ) // MarshalMsg implements msgp.Marshaler func (z BucketOptions) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 2 // string "Deleted" o = append(o, 0x82, 0xa7, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64) o = msgp.AppendBool(o, z.Deleted) // string "Cached"
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Mar 08 19:08:18 UTC 2024 - 8.1K bytes - Viewed (0) -
internal/bucket/replication/datatypes_gen.go
func (z StatusType) EncodeMsg(en *msgp.Writer) (err error) { err = en.WriteString(string(z)) if err != nil { err = msgp.WrapError(err) return } return } // MarshalMsg implements msgp.Marshaler func (z StatusType) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) o = msgp.AppendString(o, string(z)) return } // UnmarshalMsg implements msgp.Unmarshaler
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Mar 08 19:08:18 UTC 2024 - 2.3K bytes - Viewed (0)