- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for typedArshalers (0.16 sec)
-
test/typeparam/issue50437.dir/a.go
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 } func (a *typedArshalers[Options]) lookup(fnc func(Options) error) (func(Options) error, bool) { a.m.Load(nil) return fnc, false } type M struct {} func (m *M) Load(key any) (value any, ok bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 07 17:55:52 UTC 2022 - 935 bytes - Viewed (0) -
test/typeparam/issue48185b.dir/a.go
package a import ( "reflect" "sync" ) type addressableValue struct{ reflect.Value } type arshalers[Options, Coder any] struct { fncVals []typedArshaler[Options, Coder] fncCache sync.Map // map[reflect.Type]unmarshaler } type typedArshaler[Options, Coder any] struct { typ reflect.Type fnc func(Options, *Coder, addressableValue) error } type UnmarshalOptions1 struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 07 20:37:05 UTC 2021 - 1K bytes - Viewed (0)