- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 315 for elem2 (0.07 sec)
-
src/errors/wrap_test.go
rtarget := reflect.ValueOf(tc.target) rtarget.Elem().Set(reflect.Zero(reflect.TypeOf(tc.target).Elem())) t.Run(name, func(t *testing.T) { match := errors.As(tc.err, tc.target) if match != tc.match { t.Fatalf("match: got %v; want %v", match, tc.match) } if !match { return } if got := rtarget.Elem().Interface(); got != tc.want { t.Fatalf("got %#v, want %#v", got, tc.want)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:49:49 UTC 2024 - 6K bytes - Viewed (0) -
src/runtime/mfinal.go
} if uintptr(e.data) != base { // As an implementation detail we allow to set finalizers for an inner byte // of an object if it could come from tiny alloc (see mallocgc for details). if ot.Elem == nil || ot.Elem.Pointers() || ot.Elem.Size_ >= maxTinySize { throw("runtime.SetFinalizer: pointer not at beginning of allocated block") } } f := efaceOf(&finalizer) ftyp := f._type if ftyp == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 01:56:56 UTC 2024 - 19K bytes - Viewed (0) -
src/io/fs/fs.go
if name == "." { // special case return true } // Iterate over elements in name, checking each. for { i := 0 for i < len(name) && name[i] != '/' { i++ } elem := name[:i] if elem == "" || elem == "." || elem == ".." { return false } if i == len(name) { return true // reached clean ending } name = name[i+1:] } } // A File provides access to a single file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 15 21:21:41 UTC 2024 - 9.4K bytes - Viewed (0) -
schema/serializer.go
return fmt.Errorf("failed to unmarshal JSONB value: %#v", dbValue) } if len(bytes) > 0 { err = json.Unmarshal(bytes, fieldValue.Interface()) } } field.ReflectValueOf(ctx, dst).Set(fieldValue.Elem()) return } // Value implements serializer interface func (JSONSerializer) Value(ctx context.Context, field *Field, dst reflect.Value, fieldValue interface{}) (interface{}, error) {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Mar 18 08:28:46 UTC 2024 - 4.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named_test.go
t.Fatal(err) } firstFieldType := func(n *Named) *Named { return n.Underlying().(*Struct).Field(0).Type().(*Pointer).Elem().(*Named) } Inst := Unalias(pkg.Scope().Lookup("Inst").Type()).(*Pointer).Elem().(*Named) Node := firstFieldType(Inst) Tree := firstFieldType(Node) if !Identical(Inst, Tree) { t.Fatalf("Not a cycle: got %v, want %v", Tree, Inst) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 21:06:56 UTC 2024 - 3.6K bytes - Viewed (0) -
test/typeparam/graph.go
// elements equal. All floating point NaNs are considered equal. func _SliceEqual[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { return false } for i, v1 := range s1 { v2 := s2[i] if v1 != v2 { isNaN := func(f Elem) bool { return f != f } if !isNaN(v1) || !isNaN(v2) { return false } } } return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/module/module.go
func checkElem(elem string, kind pathKind) error { if elem == "" { return fmt.Errorf("empty path element") } if strings.Count(elem, ".") == len(elem) { return fmt.Errorf("invalid path element %q", elem) } if elem[0] == '.' && kind == modulePath { return fmt.Errorf("leading dot in path element") } if elem[len(elem)-1] == '.' {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 20:17:07 UTC 2024 - 26.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/depBase/dep.go
// This code below causes various go.itab.* symbols to be generated in // the shared library. Similar code in ../exe/exe.go results in // exercising https://golang.org/issues/17594 reflect.TypeOf(os.Stdout).Elem() return 10 } func F() int { defer func() {}() return V } func H() { // Issue 67635: deadcoded closures causes linker crash. func() { F() }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 14:52:41 UTC 2024 - 1K bytes - Viewed (0) -
src/encoding/xml/marshal.go
} case reflect.Slice: if elem, ok := vf.Interface().([]byte); ok { if err := emit(p, elem); err != nil { return err } } } continue case fComment: if err := s.trim(finfo.parents); err != nil { return err } vf = indirect(vf) k := vf.Kind() if !(k == reflect.String || k == reflect.Slice && vf.Type().Elem().Kind() == reflect.Uint8) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 31.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeMultiset.java
*/ @CheckForNull private AvlNode<E> pred; @CheckForNull private AvlNode<E> succ; AvlNode(@ParametricNullness E elem, int elemCount) { checkArgument(elemCount > 0); this.elem = elem; this.elemCount = elemCount; this.totalCount = elemCount; this.distinctElements = 1; this.height = 1; this.left = null;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 34.2K bytes - Viewed (0)