Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 591 for elem5 (0.04 sec)

  1. src/cmd/go/internal/mvs/errors.go

    	for len(stack) > 0 && stack[0].m.Version == "" {
    		stack = stack[1:]
    	}
    
    	if len(stack) == 0 {
    		b.WriteString(e.Err.Error())
    	} else {
    		for _, elem := range stack[:len(stack)-1] {
    			fmt.Fprintf(b, "%s %s\n\t", elem.m, elem.nextReason)
    		}
    		// Ensure that the final module path and version are included as part of the
    		// error message.
    		m := stack[len(stack)-1].m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 17:22:28 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/errorsas/errorsas.go

    	}
    	if pt.Elem() == errorType {
    		return errors.New("second argument to errors.As should not be *error")
    	}
    	_, ok = pt.Elem().Underlying().(*types.Interface)
    	if ok || types.Implements(pt.Elem(), errorType.Underlying().(*types.Interface)) {
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:52:54 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert.go

    	result := url.Values{}
    	if obj == nil {
    		return result, nil
    	}
    	var sv reflect.Value
    	switch reflect.TypeOf(obj).Kind() {
    	case reflect.Pointer, reflect.Interface:
    		sv = reflect.ValueOf(obj).Elem()
    	default:
    		return nil, fmt.Errorf("expecting a pointer or interface")
    	}
    	st := sv.Type()
    	if !isStructKind(st.Kind()) {
    		return nil, fmt.Errorf("expecting a pointer to a struct")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  4. pkg/test/framework/resource/matcher.go

    	if len(filter) == 0 {
    		// No regex defined, we default to NOT matching. This ensures our default skips nothing
    		return false
    	}
    	elem := strings.Split(testName, "/")
    	if len(filter) > len(elem) {
    		return false
    	}
    	for i, s := range elem {
    		if i >= len(filter) {
    			break
    		}
    		if !filter[i].MatchString(s) {
    			return false
    		}
    	}
    	return true
    }
    
    // From go/src/testing/match.go
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 12 23:30:37 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  5. src/internal/reflectlite/tostring_test.go

    			return "true"
    		} else {
    			return "false"
    		}
    	case reflect.Pointer:
    		v := val
    		str = typ.String() + "("
    		if v.IsNil() {
    			str += "0"
    		} else {
    			str += "&" + valueToStringImpl(v.Elem())
    		}
    		str += ")"
    		return str
    	case reflect.Array, reflect.Slice:
    		v := val
    		str += typ.String()
    		str += "{"
    		for i := 0; i < v.Len(); i++ {
    			if i > 0 {
    				str += ", "
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  6. test/fixedbugs/issue63462.go

    // license that can be found in the LICENSE file.
    
    package p
    
    func f() {
    	for b := "" < join([]string{}, "") && true; ; {
    		_ = b
    	}
    }
    
    //go:noinline
    func join(elems []string, sep string) string {
    	return ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:23:06 UTC 2023
    - 331 bytes
    - Viewed (0)
  7. pkg/config/schema/codegen/templates/collections.go.tmpl

    			{{- if ne .Resource.StatusProto "" }}StatusProto: "{{ .Resource.StatusProto }}",{{end}}
    			ReflectType: reflect.TypeOf(&{{.ClientImport}}.{{.SpecType}}{}).Elem(),
    			{{- if ne .StatusType "" }}StatusType: reflect.TypeOf(&{{.StatusImport}}.{{.StatusType}}{}).Elem(), {{end}}
    			ProtoPackage: "{{ .Resource.ProtoPackage }}",
    			{{- if ne "" .Resource.StatusProtoPackage}}StatusPackage: "{{ .Resource.StatusProtoPackage }}", {{end}}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/positions.go

    		case *ListExpr:
    			if l := lastExpr(n.ElemList); l != nil {
    				m = l
    				continue
    			}
    			return n.Pos()
    
    		// types
    		case *ArrayType:
    			m = n.Elem
    		case *SliceType:
    			m = n.Elem
    		case *DotsType:
    			m = n.Elem
    		case *StructType:
    			if l := lastField(n.FieldList); l != nil {
    				m = l
    				continue
    			}
    			return n.Pos()
    			// TODO(gri) need to take TagList into account
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. src/path/path_test.go

    	{[]string{"a/", "b"}, "a/b"},
    	{[]string{"a/", ""}, "a"},
    	{[]string{"", ""}, ""},
    }
    
    func TestJoin(t *testing.T) {
    	for _, test := range jointests {
    		if p := Join(test.elem...); p != test.path {
    			t.Errorf("Join(%q) = %q, want %q", test.elem, p, test.path)
    		}
    	}
    }
    
    type ExtTest struct {
    	path, ext string
    }
    
    var exttests = []ExtTest{
    	{"path.go", ".go"},
    	{"path.pb.go", ".go"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 13 01:12:09 UTC 2020
    - 4.6K bytes
    - Viewed (0)
  10. internal/s3select/sql/jsonpath.go

    				}
    			}
    			// Key not found - return nil result
    			return Missing{}, false, nil
    		case simdjson.Object:
    			elem := kvs.FindKey(key, nil)
    			if elem == nil {
    				// Key not found - return nil result
    				return Missing{}, false, nil
    			}
    			val, err := IterToValue(elem.Iter)
    			if err != nil {
    				return nil, false, err
    			}
    			return jsonpathEval(p[1:], val)
    		default:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top